mirror of
https://github.com/supabase/supabase.git
synced 2026-06-28 19:39:19 -04:00
13 lines
265 B
TypeScript
13 lines
265 B
TypeScript
import { withDocsBasePath } from '../internal-links'
|
|
|
|
export const Link = ({
|
|
props,
|
|
children,
|
|
}: {
|
|
props: Record<string, unknown>
|
|
children: string
|
|
}): string => {
|
|
const href = withDocsBasePath(String(props.href ?? ''))
|
|
return `[${children}](${href})`
|
|
}
|