All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m14s
24 lines
640 B
TypeScript
24 lines
640 B
TypeScript
'use client';
|
|
|
|
import { Button } from '@/components/ui/Button';
|
|
|
|
interface ShareButtonProps {
|
|
onClick: () => void;
|
|
}
|
|
|
|
export function ShareButton({ onClick }: ShareButtonProps) {
|
|
return (
|
|
<Button variant="outline" size="sm" onClick={onClick}>
|
|
<svg
|
|
xmlns="http://www.w3.org/2000/svg"
|
|
viewBox="0 0 20 20"
|
|
fill="currentColor"
|
|
className="mr-2 h-4 w-4"
|
|
>
|
|
<path d="M13 4.5a2.5 2.5 0 11.702 1.737L6.97 9.604a2.518 2.518 0 010 .792l6.733 3.367a2.5 2.5 0 11-.671 1.341l-6.733-3.367a2.5 2.5 0 110-3.475l6.733-3.366A2.52 2.52 0 0113 4.5z" />
|
|
</svg>
|
|
Partager
|
|
</Button>
|
|
);
|
|
}
|