import { useState } from 'react' import { IconCheck, IconClipboard } from 'ui' const CommandRender = ({ commands }: any) => { return (
{commands.map((item: any, idx: number) => { return })}
) } export default CommandRender const Command = ({ item }: any) => { const [isCopied, setIsCopied] = useState(false) return (
{`> ${item.comment}`}
$ {item.jsx ? item.jsx() : null}
) }