import type React from "react"; import { Box, Typography, Chip, IconButton } from "@mui/material"; import DeleteIcon from "@mui/icons-material/Delete"; import type { Patch } from "api/types/Patch"; interface PackagePatchesListProps { patches: Patch[]; editable: boolean; onDelete: (key: string) => void; } export default function PackagePatchesList({ patches, editable, onDelete }: PackagePatchesListProps): React.JSX.Element | null { if (patches.length === 0) { return null; } return ( Environment variables {patches.map((patch) => ( = {JSON.stringify(patch.value)} {editable && ( onDelete(patch.key)}> )} ))} ); }