import { Documentation } from '../utils/doc-utils' import { Link } from 'react-feather' export interface DocsProps { docs: Documentation braces: boolean assign: boolean } export default function Docs({ docs, braces, assign }: DocsProps) { return (
{docs.values.map((doc) => (
{braces && ${} {doc.name} {typeof doc.args != 'undefined' && doc.args.length > 0 && ( <> {assign && =} {doc.args.map((arg) => ( {arg} ))} )} {braces && }}
{typeof doc.default != 'undefined' && (
Default:{' '} {doc.default}
)}
))}
) }