{ "type": "composition", "npmDependencies": [], "fileDependencies": [], "id": "alert", "file": { "name": "alert.tsx", "content": "import { Alert as ChakraAlert } from \"@chakra-ui/react\"\nimport * as React from \"react\"\n\nexport interface AlertProps extends Omit {\n startElement?: React.ReactNode\n endElement?: React.ReactNode\n title?: React.ReactNode\n icon?: React.ReactElement\n}\n\nexport const Alert = React.forwardRef(\n function Alert(props, ref) {\n const { title, children, icon, startElement, endElement, ...rest } = props\n return (\n \n {startElement || {icon}}\n {children ? (\n \n {title}\n {children}\n \n ) : (\n {title}\n )}\n {endElement}\n \n )\n },\n)\n" }, "component": "Alert" }