import { ExternalLink } from 'lucide-react' import Image from 'next/image' import Link from 'next/link' import { forwardRef } from 'react' import { Button, cn } from 'ui' import { Doc } from '@/.velite' const SourcePanel = forwardRef & { doc: Doc }>( ({ doc, children, ...props }, ref) => { const ShadcnPanel = () => { if (doc.source?.shadcn) { return (
shadcn/ui
This component is based on ui.shadcn
) } } const VaulPanel = () => { if (doc.source?.vaul) { return (
Vaul vaul
This component is based on vaul by emilkowalski
) } } const ReactAccesibleTreeViewPanel = () => { if (doc.source?.reactAccessibleTreeview) { return (
dgreene1 react-accessible-treeview Component based on react-accessible-treeview by dgreene1
{doc.links ? (
{doc.links?.doc && ( )} {doc.links?.api && ( )}
) : null}
) } } const InputOtp = () => { if (doc.source?.inputOtp) { return (
inputOtp input-otp
This component is based on input-otp by guilhermerodz
) } } const RadixPanel = () => { if (doc.source?.radix) { return (
This component uses Radix UI {doc.links ? (
{doc.links?.doc && ( )} {doc.links?.api && ( )}
) : null}
) } } const RechartsPanel = () => { if (doc.source?.recharts) { return (
This component uses Recharts {doc.links ? (
{doc.links?.doc && ( )} {doc.links?.api && ( )}
) : null}
) } } return (
{/* */}
) } ) SourcePanel.displayName = 'SourcePanel' export { SourcePanel }