mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-04-25 00:36:31 +02:00
feat: released 0.0.9 changelog
This commit is contained in:
parent
b4b7059035
commit
2603db74eb
7 changed files with 207 additions and 2 deletions
|
|
@ -1,9 +1,28 @@
|
|||
import defaultMdxComponents from "fumadocs-ui/mdx";
|
||||
import type { MDXComponents } from "mdx/types";
|
||||
import {
|
||||
Accordion,
|
||||
AccordionContent,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
} from "@/components/ui/accordion";
|
||||
import { cn } from "@/lib/utils";
|
||||
|
||||
export function getMDXComponents(components?: MDXComponents): MDXComponents {
|
||||
return {
|
||||
...defaultMdxComponents,
|
||||
img: ({ className, ...props }: React.ComponentProps<"img">) => (
|
||||
<img className={cn("rounded-md border", className)} {...props} />
|
||||
),
|
||||
Video: ({ className, ...props }: React.ComponentProps<"video">) => (
|
||||
<video className={cn("rounded-md border", className)} controls loop {...props} />
|
||||
),
|
||||
Accordion,
|
||||
AccordionItem,
|
||||
AccordionTrigger,
|
||||
AccordionContent,
|
||||
...components,
|
||||
};
|
||||
}
|
||||
|
||||
export const useMDXComponents = getMDXComponents;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue