import { FC, PropsWithChildren } from 'react' import { cn } from 'ui' interface IStep { title: string step: number | string } interface IStepHikeCompactSubcomponents { Step: FC Details: FC Code: FC } interface IDetails { title?: string fullWidth?: boolean } interface ICode {} interface IStepHikeCompact { title: string } const StepHikeCompact: FC> & IStepHikeCompactSubcomponents = ({ children, title, }) => { return
{children}
} const Step: FC> = ({ children, title, step }) => { return (
{step}
{children}
) } const Details: FC> = ({ children, title, fullWidth = false }) => { return (
{title && ( {title} )} {children}
) } const Code: FC> = ({ children }) => { // Not `not-prose`: steps interleave labels and admonitions with their code samples, and // stripping prose leaves that text unstyled and flush against the samples. return (
{children}
) } StepHikeCompact.Step = Step StepHikeCompact.Details = Details StepHikeCompact.Code = Code export default StepHikeCompact