Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

315 B
Raw Blame
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
}