import { BiSolidCheckboxChecked, BiSolidCheckboxMinus, BiSolidXSquare, } from 'react-icons/bi'; import Spinner from './Spinner'; import clsx from 'clsx/lite'; export default function StatusIcon({ type, loading, className, }: { type: 'checked' | 'missing' | 'warning' | 'optional' loading?: boolean className?: string }) { const getIcon = () => { switch (type) { case 'checked': return ; case 'missing': return ; case 'warning': return ; case 'optional': return ; } }; return ( {loading ? : {getIcon()} } ); }