import { Check, Copy } from 'lucide-react'; import { HTMLProps } from 'react'; import cn from '~/utils/cn'; import toast from '~/utils/toast'; export interface CodeProps extends HTMLProps { isCopyable?: boolean; children: string | string[]; } export default function Code({ isCopyable, children, className }: CodeProps) { return ( {children} {isCopyable && ( )} ); }