diff --git a/packages/ui/src/components/Section.tsx b/packages/ui/src/components/Section.tsx index 143c825..a5dc482 100644 --- a/packages/ui/src/components/Section.tsx +++ b/packages/ui/src/components/Section.tsx @@ -1,36 +1,57 @@ import { ReactNode } from "react"; import { Badge, + Button, Card, CardBody, + CardHeader, CardTitle, Split, SplitItem, } from "@patternfly/react-core"; +import { PencilAltIcon } from "@patternfly/react-icons"; export function Section({ title, count, id, children, + onEdit, }: { title: ReactNode; count?: number; id: string; children: ReactNode; + onEdit?: () => void; }) { return ( - - - {title} - {count !== undefined && ( - - {count} - - )} - - + + {onEdit && ( +