diff --git a/apps/documentation/src/components/MdxProvider/MdxLink/MdxLink.tsx b/apps/documentation/src/components/MdxProvider/MdxLink/MdxLink.tsx index a60ed9ba..e3d47641 100644 --- a/apps/documentation/src/components/MdxProvider/MdxLink/MdxLink.tsx +++ b/apps/documentation/src/components/MdxProvider/MdxLink/MdxLink.tsx @@ -1,34 +1,44 @@ -import type { JSX, AnchorHTMLAttributes } from 'react' -import { Button } from '@mantine/core' +import type { JSX, AnchorHTMLAttributes, ReactNode } from 'react' +import { Anchor } from '@mantine/core' import { Link } from 'tuono' import { IconExternalLink } from '@tabler/icons-react' -export default function MdxLink( - props: AnchorHTMLAttributes, -): JSX.Element { +interface MdxLinkProps extends AnchorHTMLAttributes { + children: ReactNode +} + +export default function MdxLink(props: MdxLinkProps): JSX.Element { if (props.href?.startsWith('http') || props.href?.startsWith('mailto')) { return ( -