The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
import { SheetHeader, SheetTitle } from 'ui'
interface CreateFunctionHeaderProps {
selectedFunction?: string
isDuplicating?: boolean
}
export const CreateFunctionHeader = ({
selectedFunction,
isDuplicating,
}: CreateFunctionHeaderProps) => {
return (
<SheetHeader className="py-3 flex flex-row justify-between items-center border-b-0">
<div className="flex flex-row gap-3 items-center max-w-[75%]">
<SheetTitle className="truncate">
{selectedFunction !== undefined ? (
isDuplicating ? (
<>
Duplicate <code className="text-sm">{selectedFunction}</code>
</>
) : (
<>
Edit <code className="text-sm">{selectedFunction}</code>
</>
)
) : (
'Add a new function'
)}
</SheetTitle>
</div>
</SheetHeader>
)
}