mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
Headings inside MDX content now use Inter to match body copy. Manrope stays on the per-page main title and the homepage hero/section titles.
28 lines
663 B
TypeScript
28 lines
663 B
TypeScript
'use client'
|
|
|
|
import ReactMarkdown from 'react-markdown'
|
|
|
|
import { useGuide } from './Guide'
|
|
|
|
interface GuideHeaderProps {
|
|
className?: string
|
|
}
|
|
|
|
export function GuideHeader({ className }: GuideHeaderProps) {
|
|
const { meta } = useGuide()
|
|
|
|
return (
|
|
<div className={className}>
|
|
<h1 className="font-heading mb-0 [&>p]:m-0">
|
|
<ReactMarkdown>{meta?.title || 'Supabase Docs'}</ReactMarkdown>
|
|
</h1>
|
|
{meta?.subtitle && (
|
|
<h2 className="mt-3 text-xl text-foreground-light">
|
|
<ReactMarkdown>{meta.subtitle}</ReactMarkdown>
|
|
</h2>
|
|
)}
|
|
<hr className="not-prose border-t-0 border-b my-8" />
|
|
</div>
|
|
)
|
|
}
|