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 (
{downloadStates.length > 0 ? `Downloading model ... ` : `Let’s download your first model`}
{downloadStates?.length > 0 && ({item?.modelId}
{formatDownloadPercentage(item?.percent)}