import { CheckCircle, CircleDashed, ShieldAlert } from "lucide-react"; import "./CustomStateCellRender.css"; import { StateCell, Tooltip } from "@codex-storage/marketplace-ui-components"; // Import css StateCell; type Props = { state: string; message: string | undefined; }; export const CustomStateCellRender = ({ state, message }: Props) => { const icons = { pending: CircleDashed, submitted: CircleDashed, started: CircleDashed, finished: CheckCircle, cancelled: ShieldAlert, errored: ShieldAlert, }; const states = { cancelled: "error", errored: "error", pending: "warning", started: "loading", submitted: "loading", finished: "success", }; const Icon = icons[state as keyof typeof icons] || CircleDashed; return (
{message ? (