import { Chip, ChipProps, IconButton } from "@mui/material"; import { IconX } from "@intersect.mbo/intersectmbo.org-icons-set"; import { primaryBlue } from "../../consts/colors"; interface ChipWithDeleteProps extends ChipProps { label: React.ReactNode; onDelete: () => void; color?: | "default" | "primary" | "secondary" | "error" | "info" | "success" | "warning"; bgColor?: string; variant?: "filled" | "outlined"; testId?: string; sx?: object; iconSize?: number; customDeleteIcon?: React.ReactElement | null; deleteIconPosition?: "left" | "right"; } const ChipWithDelete = ({ label, onDelete, color = "primary", bgColor = primaryBlue.c1000, variant = "filled", size = "small", testId, sx = {}, iconSize = 16, customDeleteIcon = null, deleteIconPosition = "right", ...otherProps }: ChipWithDeleteProps) => { const deleteIconStyle = { width: iconSize, height: iconSize, }; const deleteIcon = customDeleteIcon || ( ); return ( ); }; export default ChipWithDelete;