mirror of
https://github.com/supabase/supabase.git
synced 2026-07-25 17:02:30 -04:00
15 lines
315 B
TypeScript
15 lines
315 B
TypeScript
export const Panel = ({
|
|
props,
|
|
children,
|
|
}: {
|
|
props: Record<string, unknown>
|
|
children: string
|
|
}): string => {
|
|
const title = String(props.title ?? '')
|
|
const description = children.replace(/\s+/g, ' ').trim()
|
|
|
|
if (title && description) return `${title}: ${description}`
|
|
|
|
return title || description
|
|
}
|