import React, { useState } from 'react'; import { Button } from '../ui/button'; import { X, Repeat, MessageSquare, Link, Mail, Check } from 'lucide-react'; import { Post } from '../../types'; import { useToast } from '../../components/feedback/ToastProvider'; import { useCopyToClipboard } from '@/hooks/useCopyToClipboard'; interface SharePostModalProps { post: Post; onClose: () => void; onConfirm: (type: 'repost' | 'quote', text?: string) => void; } export const SharePostModal: React.FC = ({ post, onClose, onConfirm, }) => { const { addToast } = useToast(); const [mode, setMode] = useState<'options' | 'quote'>('options'); const [quoteText, setQuoteText] = useState(''); const { copied, copy } = useCopyToClipboard(); const handleCopyLink = async () => { const ok = await copy(`https://veza.io/post/${post.id}`); if (ok) { addToast('Link copied to clipboard', 'success'); onClose(); } }; if (mode === 'quote') { return (

Quote Post