import { Check, Copy } from 'lucide-react' import { forwardRef, useState } from 'react' import { cn, copyToClipboard } from 'ui' const CommandRender = forwardRef( ({ commands, className }, ref) => { return (
{commands.map((item: any, idx: number) => ( ))}
) } ) CommandRender.displayName = 'CommandRender' export default CommandRender const Command = ({ item }: any) => { const [isCopied, setIsCopied] = useState(false) return (
{`> ${item.comment}`}
$ {item.jsx ? item.jsx() : null}
) }