import type { BulkImportState } from "../hooks/use-bulk-import.js"; import { Toast } from "./toast.js"; interface BulkImportToastsProps { state: BulkImportState; visible: boolean; onReset: () => void; } export function BulkImportToasts({ state, visible, onReset, }: BulkImportToastsProps) { if (!visible) return null; if (state.status === "loading") { return ( 0 ? (state.completed + state.failed) / state.total : 0 } onDismiss={() => {}} /> ); } if (state.status === "complete") { return ( ); } if (state.status === "partial-failure") { return ( ); } return null; }