& { raw?: string }) {
const { children, className, raw, ...otherProps } = props;
return (
{children}
{raw ? : null}
);
}
function LinkCard({ className, ...props }: React.ComponentProps) {
return (
p]:text-center",
className
)}
{...props}
/>
);
}
function Steps(props: HTMLAttributes) {
return (
);
}
export function CustomMDX(
props: ComponentProps & {
folderPath: string;
}
) {
const { folderPath } = props;
const components = {
a: CustomLink,
code: CustomCode,
pre: CustomPre,
PropsTable,
PreviewComponent,
Alert,
Button,
Tabs: TabsRoot,
TabsContent,
TabsList,
TabsTrigger,
Tooltip,
// Logomark: LemonSqueezyLogomark,
Image: (props: ComponentProps) => ,
Colors,
LinkCard,
Steps,
};
return (
',
{ fragment: true }
).children,
},
],
[rehypePrettyCode, prettyCodeOptions],
rehypeCopyCodePostProcess,
],
},
}}
{...props}
/>
);
}