import { Plus } from 'lucide-react'; import { valueOrNA } from '@ballerine/common'; import { ctw } from '@/common/utils/ctw/ctw'; import { Sheet } from '@/common/components/atoms/Sheet/Sheet'; import { Button } from '@/common/components/atoms/Button/Button'; import { Tooltip } from '@/common/components/atoms/Tooltip/Tooltip'; import { SheetContent, SheetTrigger } from '@/common/components/atoms/Sheet'; import { ScrollArea } from '@/common/components/molecules/ScrollArea/ScrollArea'; import { TooltipContent } from '@/common/components/atoms/Tooltip/Tooltip.Content'; import { TooltipTrigger } from '@/common/components/atoms/Tooltip/Tooltip.Trigger'; import { CaseCreationForm } from '@/pages/Entities/components/CaseCreation/components/CaseCreationForm'; import { withCaseCreation } from '@/pages/Entities/components/CaseCreation/context/case-creation-context/hocs/withCaseCreation'; import { useCaseCreationLogic } from '@/pages/Entities/components/CaseCreation/hooks/useCaseCreationLogic/useCaseCreationLogic'; export const CaseCreation = withCaseCreation(() => { const { isDemoAccount, isOpen, setOpen, error, workflowDefinition, workflowDefinitionName, isLoading, isDemoKybEnabled, } = useCaseCreationLogic(); return (
{!isLoading && workflowDefinition ? (
{valueOrNA(workflowDefinitionName)}

Add a Case

Create a{' '} {valueOrNA(workflowDefinitionName)} {' '} case by filling in the information below. Please ensure all the required fields are filled out correctly.

Case information

{workflowDefinition ? ( ) : (

Workflow definition is missing.

)}
) : (
Loading workflow definition...
)} {!!error &&
Failed to load workflow definition
}
); });