import { cn } from "@/lib/utils" import Pre from "@/components/pre" export default function CodeBlockDemo({ className }: { className?: string }) { const exampleCode = `import React from 'react' import { Button } from '@/components/ui/button' interface Props { title: string description?: string onAction?: () => void } export function MyComponent({ title, description, onAction }: Props) { return (
{description}
)}
{exampleCode}
)
}