import { Button } from '@janhq/uikit' import { Modal, ModalTrigger, ModalContent, ModalHeader, ModalTitle, Progress, } from '@janhq/uikit' import { DatabaseIcon } from 'lucide-react' import { MainViewState } from '@/constants/screens' import { useDownloadState } from '@/hooks/useDownloadState' import { useMainViewState } from '@/hooks/useMainViewState' import { formatDownloadPercentage } from '@/utils/converter' export default function BlankStateMyModel() { const { setMainViewState } = useMainViewState() const { downloadStates } = useDownloadState() return (

{`Ups, You don't have a model.`}

{downloadStates.length > 0 ? `Downloading model ... ` : `let’s download your first model`}

{downloadStates?.length > 0 && ( Downloading model {downloadStates.map((item, i) => { return (

{item?.fileName}

{formatDownloadPercentage(item?.percent)}
) })}
)}
) }