mirror of
https://github.com/supabase/supabase.git
synced 2026-06-29 11:57:37 -04:00
17 lines
479 B
TypeScript
17 lines
479 B
TypeScript
type Props = Record<string, unknown>
|
|
type Ctx = { props: Props; children: string }
|
|
|
|
const Step = ({ props, children }: Ctx): string => {
|
|
const step = String(props.step ?? '').trim()
|
|
return step ? `${step}. ${children}` : children
|
|
}
|
|
|
|
const Details = ({ props, children }: Ctx): string => {
|
|
return props.title ? `**${String(props.title).trim()}**\n\n${children}` : children
|
|
}
|
|
|
|
export const StepHike = {
|
|
'StepHikeCompact.Step': Step,
|
|
'StepHikeCompact.Details': Details,
|
|
}
|