import { PropsWithChildren } from 'react'; import { X } from 'lucide-react'; import { Widget, WidgetBody } from './Widget'; import { Button } from './buttons'; interface Props { title?: string; onDismiss?(): void; bodyClassName?: string; wrapperStyle?: Record; } export function InformationPanel({ title, onDismiss, wrapperStyle, bodyClassName, children, }: PropsWithChildren) { return (
{title && (
{title} {!!onDismiss && ( )}
)}
{children}
); }