mirror of
https://github.com/supabase/supabase.git
synced 2026-09-09 11:30:17 +08:00
* improve some studio mobile layouts * improve some studio mobile layouts * improve settings * assistant mobile * assistant mobile * assistant mobile * responsive formlayout and new project layout * improve dashboard pages headers * improve dashboard auth pages * mobile org settings * mobile billing fixes * adjust paused project container height * remove comments * triggers * leftovers * ai assistant * fix errors * remove 16px input size * fix test * merge access tokens settings page conflicsts * smol integrations here and there
37 lines
863 B
TypeScript
37 lines
863 B
TypeScript
import { ReactNode } from 'react'
|
|
import { cn } from 'ui'
|
|
import { DocsButton } from '../DocsButton'
|
|
|
|
const FormHeader = ({
|
|
title,
|
|
description,
|
|
docsUrl,
|
|
actions,
|
|
className,
|
|
}: {
|
|
title: string
|
|
description?: string
|
|
docsUrl?: string
|
|
actions?: ReactNode
|
|
className?: string
|
|
}) => {
|
|
return (
|
|
<div
|
|
className={cn(
|
|
`w-full mb-6 flex flex-col sm:flex-row md:items-center justify-between gap-4 ${className}`
|
|
)}
|
|
>
|
|
<div className="space-y-1">
|
|
<h3 className="text-foreground text-xl prose">{title}</h3>
|
|
{description && <div className="prose text-sm max-w-full">{description}</div>}
|
|
</div>
|
|
<div className="flex flex-col sm:flex-row md:items-center gap-x-2">
|
|
{docsUrl !== undefined && <DocsButton href={docsUrl} />}
|
|
{actions}
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export { FormHeader }
|