"use client"; import { useState } from "react"; import { Button } from "./button"; import { Check, Clipboard } from "lucide-react"; import { AnimatePresence, motion } from "framer-motion"; export type SnippetProps = { value: string; copy?: boolean; } & React.HTMLAttributes; function Snippet(props: SnippetProps) { const [copied, setCopied] = useState(false); const copy = props.copy === undefined ? true : props.copy; return (
        {props.value}
      
{copy && ( )}
); } export { Snippet };