diff --git a/starterkits/saas/src/components/mdx-components.tsx b/starterkits/saas/src/components/mdx-components.tsx deleted file mode 100644 index d61c707..0000000 --- a/starterkits/saas/src/components/mdx-components.tsx +++ /dev/null @@ -1,246 +0,0 @@ -import { cn } from "@/lib/utils"; -import Link from "next/link"; -import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"; - -const components = { - h1: ({ className, ...props }: React.HTMLAttributes) => ( -

- ), - h2: ({ className, ...props }: React.HTMLAttributes) => ( -

- ), - h3: ({ className, ...props }: React.HTMLAttributes) => ( -

- ), - h4: ({ className, ...props }: React.HTMLAttributes) => ( -

- ), - h5: ({ className, ...props }: React.HTMLAttributes) => ( -
- ), - h6: ({ className, ...props }: React.HTMLAttributes) => ( -
- ), - a: ({ className, ...props }: React.HTMLAttributes) => ( - - ), - p: ({ - className, - ...props - }: React.HTMLAttributes) => ( -

- ), - ul: ({ className, ...props }: React.HTMLAttributes) => ( -

    - ), - ol: ({ className, ...props }: React.HTMLAttributes) => ( -
      - ), - li: ({ className, ...props }: React.HTMLAttributes) => ( -
    1. - ), - blockquote: ({ - className, - ...props - }: React.HTMLAttributes) => ( -
      - ), - img: ({ - className, - alt, - ...props - }: React.ImgHTMLAttributes) => ( - // eslint-disable-next-line @next/next/no-img-element - {alt} - ), - hr: ({ ...props }: React.HTMLAttributes) => ( -
      - ), - table: ({ - className, - ...props - }: React.HTMLAttributes) => ( -
      - - - ), - tr: ({ - className, - ...props - }: React.HTMLAttributes) => ( - - ), - th: ({ - className, - ...props - }: React.HTMLAttributes) => ( -
      - ), - td: ({ - className, - ...props - }: React.HTMLAttributes) => ( - - ), - Link: ({ className, ...props }: React.ComponentProps) => ( - - ), - LinkedCard: ({ - className, - ...props - }: React.ComponentProps) => ( - - ), - - code: ({ className, ...props }: React.HTMLAttributes) => ( - - ), - pre: ({ className, ...props }: React.HTMLAttributes) => ( -
      -    ),
      -    Tabs: ({ className, ...props }: React.ComponentProps) => (
      -        
      -    ),
      -    TabsList: ({
      -        className,
      -        ...props
      -    }: React.ComponentProps) => (
      -        
      -    ),
      -    TabsTrigger: ({
      -        className,
      -        ...props
      -    }: React.ComponentProps) => (
      -        
      -    ),
      -    TabsContent: ({
      -        className,
      -        ...props
      -    }: React.ComponentProps) => (
      -        
      -    ),
      -    Step: ({ className, ...props }: React.ComponentProps<"h3">) => (
      -        

      - ), - Steps: ({ ...props }) => ( -
      - ), -}; - -export function mdxComponents() { - return components; -} diff --git a/starterkits/saas/src/components/toc.tsx b/starterkits/saas/src/components/toc.tsx deleted file mode 100644 index b3a148e..0000000 --- a/starterkits/saas/src/components/toc.tsx +++ /dev/null @@ -1,41 +0,0 @@ -import type { getTableOfContents } from "@/lib/toc"; -import { cn } from "@/lib/utils"; -import Link from "next/link"; - -type TocProps = { - toc: Awaited>; - wrapperClassName?: string; -}; - -export function Toc({ toc, wrapperClassName }: TocProps) { - return ( -
      -

      On this page

      -
        - {toc.items?.map((item) => ( -
      • - {item.items ? ( - <> - {item.title} -
          - {item.items.map((subItem) => ( -
        • - - {subItem.title} - -
        • - ))} -
        - - ) : ( - {item.title} - )} -
      • - ))} -
      -
      - ); -}