import React from 'react'; export interface PropDef { name: string; type: string; default: string; description: string; } interface PropsTableProps { props: PropDef[]; } export default function PropsTable({ props }: PropsTableProps) { const { Table, TableHeader, TableBody, TableHead, TableRow, TableCell, } = require('../../../../../ui-next/src/components/Table'); return ( Prop Type Default Description {props.map(prop => ( {prop.name} {prop.type} {prop.default} {prop.description} ))}
); }