import { CheckIcon, CopyIcon } from '@primer/octicons-react'; import { HTMLProps, useState } from 'react'; import { cn } from '~/utils/cn'; import toast from '~/utils/toast'; interface Props extends HTMLProps { isCopyable?: boolean; } export default function Code(props: Props) { const [isCopied, setIsCopied] = useState(false); return ( <> {props.children} {props.isCopyable ? ( ) : undefined} ); }