import { ComposeUser } from '@lume/shared/composer/user'; import CancelIcon from '@lume/shared/icons/cancel'; import ChevronDownIcon from '@lume/shared/icons/chevronDown'; import ChevronRightIcon from '@lume/shared/icons/chevronRight'; import ComposeIcon from '@lume/shared/icons/compose'; import { useActiveAccount } from '@lume/utils/hooks/useActiveAccount'; import { Dialog, Transition } from '@headlessui/react'; import { Fragment, useState } from 'react'; export const ComposerModal = () => { const [isOpen, setIsOpen] = useState(false); const { account, isLoading, isError } = useActiveAccount(); const closeModal = () => { setIsOpen(false); }; const openModal = () => { setIsOpen(true); }; return ( <> openModal()} className="inline-flex h-7 w-max items-center justify-center gap-1 rounded-md bg-fuchsia-500 px-2.5 text-xs font-medium text-zinc-200 shadow-button hover:bg-fuchsia-600" > Compose {!isLoading && !isError && account && } Post > ); };