export const Panel = ({ props, children, }: { props: Record children: string }): string => { const title = String(props.title ?? '') const description = children.replace(/\s+/g, ' ').trim() if (title && description) return `${title}: ${description}` return title || description }