import { v4 } from "uuid" import { cabin } from "@/app/layout"; type ElementType = React.FC type FormattedTags = { [Key in keyof JSX.IntrinsicElements]: ElementType } const H1TAG: ElementType<"h1"> = ({ children }) => { return (

{children}

)} const H2Tag: ElementType<"h2"> = ({ children }) => (

{children}

) const H3Tag: ElementType<"h3"> = ({ children }) => (

{children}

) const H4Tag: ElementType<"h4"> = ({ children }) => (

{children}

) const PTag: ElementType<"p"> = ({ children }) => (

{children}

) const LiTag: ElementType<"li"> = ({ children }) => (
  • {children}
  • ) const BrTag: ElementType<"br"> = () => (
    ) export default { "h1": H1TAG, "h2": H2Tag, "h3": H3Tag, "h4": H4Tag, "p": PTag, "li": LiTag, "br": BrTag } satisfies Partial