import { cn } from "@/lib/utils"; type TextElements = | "p" | "blockquote" | "code" | "lead" | "large" | "small" | "muted"; const Text = ({ children, as, className, }: { children: React.ReactNode; as: TextElements; className?: string; }) => { switch (as) { case "p": return (
{children}
); case "blockquote": return ({children}); case "code": return (
{children}
);
case "lead":
return (
{children}
); case "large": return ({children}.
); default: return ({children}
); } }; export default Text;