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