diff --git a/components/Metadata.tsx b/components/Metadata.tsx new file mode 100644 index 0000000..3162673 --- /dev/null +++ b/components/Metadata.tsx @@ -0,0 +1,77 @@ +"use client"; + +import { Icon } from "@iconify-icon/react/dist/iconify.mjs"; +import { motion } from "framer-motion"; +import { type ReactNode, useState } from "react"; + +export function Badge({ children }: { children: ReactNode }) { + return ( + + {children} + + ); +} + +// Collapsible, animate height +export function Changelog({ children }: { children: ReactNode }) { + const [isOpen, setIsOpen] = useState(false); + + return ( +
+
+ setIsOpen((prev) => !prev)} + > +

Changelog

+ + {isOpen ? ( + +
+
+ +
    {children}
+
+
+ ); +} + +export function ChangelogItem({ + version, + children, +}: { + version: string; + children: ReactNode; +}) { + return ( +
  • +
    + {version} + {children} +
    +
  • + ); +}