import type { ComponentType } from "../api/types"; import { Badge } from "../incidents/Badge"; import { useState } from "react"; export const Component = ({ name, status, children }: ComponentType) => { const [showChildren, setShowChildren] = useState(false); const Chevron = showChildren ? ( ) : ( ); const isClickable = Boolean(children?.length); const Box = ({ children: boxChildren, clickable, className, onClick, }: { children: React.ReactNode; clickable?: boolean; className?: string; onClick?: () => void; }) => (