import { useState } from 'react'; import { Plus, Construction } from 'lucide-react'; import { Button } from '@/components/ui/button'; import { Dialog, DialogContent, DialogTitle, } from '@/components/ui/dialog'; import { ReplyComposeModal } from '@/components/ReplyComposeModal'; import { useCurrentUser } from '@/hooks/useCurrentUser'; interface FloatingComposeButtonProps { /** The Nostr event kind this FAB creates. kind=1 opens compose; others show "Coming soon". */ kind?: number; } export function FloatingComposeButton({ kind = 1 }: FloatingComposeButtonProps) { const { user } = useCurrentUser(); const [composeOpen, setComposeOpen] = useState(false); const [comingSoonOpen, setComingSoonOpen] = useState(false); if (!user) { return null; } const handleClick = () => { if (kind === 1) { setComposeOpen(true); } else { setComingSoonOpen(true); } }; return ( <> {/* Kind 1: Compose modal */} {kind === 1 && ( )} {/* Other kinds: Coming soon dialog */} {kind !== 1 && ( Coming soon Creating this type of content isn't available yet. Stay tuned! setComingSoonOpen(false)} > Got it )} > ); }
Creating this type of content isn't available yet. Stay tuned!