feat: refactor session components to utilize BaseSessionLiveWrapper, streamlining sharing functionality and reducing code duplication across various session types
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m14s
All checks were successful
Deploy with Docker Compose / deploy (push) Successful in 3m14s
This commit is contained in:
23
src/components/collaboration/ShareButton.tsx
Normal file
23
src/components/collaboration/ShareButton.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
'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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user