import React, { useState } from 'react'; import { useRecoilValue } from 'recoil'; import { Download } from 'lucide-react'; import { cn } from '~/utils/'; import ExportModel from './ExportModel'; import store from '~/store'; export default function ExportConversation() { const [open, setOpen] = useState(false); const conversation = useRecoilValue(store.conversation) || {}; const exportable = conversation?.conversationId && conversation?.conversationId !== 'new' && conversation?.conversationId !== 'search'; const clickHandler = () => { if (exportable) setOpen(true); }; return ( <> Export conversation ); }