import { AccordionCard, Button, HoverCard, HoverCardContent, HoverCardTrigger, } from '@ballerine/ui'; import { HelpCircle, SendIcon } from 'lucide-react'; import { FunctionComponent } from 'react'; import { Icon } from './constants'; import { useDocumentTracker } from './hooks/useDocumentTracker'; import { DocumentTrackerItems } from './components/DocumentTrackerItems/DocumentTrackerItems'; import { Dialog } from '@/common/components/organisms/Dialog/Dialog'; import { DialogContent } from '@/common/components/organisms/Dialog/Dialog.Content'; import { DialogDescription } from '@/common/components/organisms/Dialog/Dialog.Description'; import { DialogFooter } from '@/common/components/organisms/Dialog/Dialog.Footer'; import { DialogHeader } from '@/common/components/organisms/Dialog/Dialog.Header'; import { DialogTitle } from '@/common/components/organisms/Dialog/Dialog.Title'; import { DialogTrigger } from '@/common/components/organisms/Dialog/Dialog.Trigger'; export const DocumentTracker: FunctionComponent<{ workflowId: string }> = ({ workflowId }) => { const { getSubItems, selectedIdsToRequest, onRequestDocuments, open, onOpenChange, isRequestButtonDisabled, documentTrackerItems, } = useDocumentTracker({ workflowId }); return ( 0 ? ( e.preventDefault()} className="px-20 py-12 sm:max-w-2xl" > Ask for all requests By clicking the button below, an email with a link will be sent to the customer, directing them to upload the documents you have marked as requested. The case’s status will then change to “Revisions” until the customer will provide the needed documents and fixes. ) : (
  • {Icon.INDICATOR} Not yet provided
  • {Icon.CHECK} Provided
  • {Icon.MARKED} Marked as requested
  • {Icon.REQUESTED} Requested
) } > Documents
); }; DocumentTracker.displayName = 'DocumentTracker';