import { FC } from "react"; import { observer } from "mobx-react"; import { Pen, Trash } from "lucide-react"; type TEstimateListItem = { estimateId: string; isAdmin: boolean; isEstimateEnabled: boolean; isEditable: boolean; onEditClick?: (estimateId: string) => void; onDeleteClick?: (estimateId: string) => void; }; export const EstimateListItemButtons: FC = observer((props) => { const { estimateId, isAdmin, isEditable, onEditClick, onDeleteClick } = props; if (!isAdmin || !isEditable) return <>; return (
); });