import { useState } from 'react'; import ShareIcon from '../assets/share.svg'; import { ShareConversationModal } from '../modals/ShareConversationModal'; type ShareButtonProps = { conversationId: string; }; export default function ShareButton({ conversationId }: ShareButtonProps) { const [isShareModalOpen, setShareModalState] = useState(false); return ( <> {isShareModalOpen && ( { setShareModalState(false); }} conversationId={conversationId} /> )} ); }