import * as React from 'react'; import type { MDXComponents } from 'mdx'; import { useMDXComponent } from 'next-contentlayer/hooks'; import Link from '@/components/Link'; import TablerSponsorsBanner from '@/components/TablerSponsorsBanner'; import Callout from '@/components/mdx/Callout'; import { Card, Cards } from '@/components/mdx/Cards'; import { Code, Pre } from '@/components/mdx/Code'; import ColorsTable from '@/components/mdx/ColorsTable'; import EmailsCount from '@/components/mdx/EmailsCount'; import FlagsTable from '@/components/mdx/FlagsTable'; import GuideImage from '@/components/mdx/GuideImage'; import IconsCount from '@/components/mdx/IconsCount'; import Image from '@/components/mdx/Image'; import PaymentsTable from '@/components/mdx/PaymentsTable'; import TablerLogos from '@/components/mdx/TablerLogos'; import { Tab, Tabs } from '@/components/mdx/Tabs'; import { TabsPackage } from '@/components/mdx/TabsPackage'; import { TipBad, TipGood, TipChanges } from '@/components/mdx/Tips'; import { OptionDescription, OptionTitle, OptionsTable } from '@/components/mdx/OptionsTable'; const components: MDXComponents = { // h1: ({ className, ...props }) => ( //
// ), // h2: ({ className, ...props }) => ( // // ), // h3: ({ className, ...props }) => ( // // ), // h4: ({ className, ...props }) => ( // // ), // h5: ({ className, ...props }) => ( // // ), // h6: ({ className, ...props }) => ( // // ), // a: ({ className, ...props }) => ( // // ), // p: ({ className, ...props }) => ( // // ), // ul: ({ className, ...props }) => ( //*]:text-muted-foreground", // className // )} // {...props} // /> // ), // img: ({ // className, // alt, // ...props // }: React.ImgHTMLAttributes) => ( // // eslint-disable-next-line @next/next/no-img-element // // ), // hr: ({ ...props }) =>
, // table: ({ className, ...props }: React.HTMLAttributes) => ( // //// ), // tr: ({ className, ...props }: React.HTMLAttributes//
) => ( // // ), // th: ({ className, ...props }) => ( // // ), // td: ({ className, ...props }) => ( // // ), // pre: ({ className, ...props }) => ( // // ), // code: ({ className, ...props }) => ( // // ), // Image, // Callout, // Card: MdxCard, Link, TablerLogos, PaymentsTable, FlagsTable, ColorsTable, EmailsCount, IconsCount, GuideImage, Callout, Tabs, TabsPackage, Tab, Card, Cards, TipGood, TipBad, TipChanges, pre: Pre, code: Code, a: (props) => { return ; }, img: Image, TablerSponsorsBanner, OptionDescription, OptionTitle, OptionsTable, }; export default function Mdx({ code }: { code: string }) { const Component = useMDXComponent(code); return ( <>
> ); }