type DispatchStatusActionsProps = { status: string; locked: boolean; busy: boolean; onAccept: () => void; onRefuse: () => void; onStart: () => void; onComplete: () => void; onRequestCancel: () => void; }; export function DispatchStatusActions({ status, locked, busy, onAccept, onRefuse, onStart, onComplete, onRequestCancel, }: DispatchStatusActionsProps) { return (
{status === "Sent" && ( <> )} {status === "Acknowledged" && ( )} {status === "In Progress" && ( )} {!locked && status !== "Sent" && ( )}
); }