mirror of
https://github.com/supabase/supabase.git
synced 2026-07-01 19:54:20 +08: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})`
|
|
}
|