import { Heading, Link, Text } from '@aws-amplify/ui-react';
import {
PropsTableData,
PropsTableSubComponentData,
} from '../../../scripts/types/catalog';
import { PropsTable } from './PropsTable';
import { PropsTableExpander } from './PropsTableExpander';
function PropsTableSet({
componentName,
componentPropsData,
}: {
componentName: string;
componentPropsData: PropsTableSubComponentData;
}) {
return (
<>
{`<${componentName}>`}
>
);
}
export function PropsTableTab({
componentName,
PropsData,
htmlElement,
mdnUrl,
}: {
componentName: string;
PropsData: PropsTableData;
htmlElement: string;
mdnUrl: string;
}) {
const componentPropsData: PropsTableSubComponentData =
PropsData[componentName];
return (
<>
{Object.keys(componentPropsData)
.filter((subComponentName) => subComponentName !== componentName)
.map((subComponentName) => (
))}
See Style Props for all
supported style and layout properties.
{componentName} will also accept any of the standard HTML attributes
that a {htmlElement || 'div'} element accepts, which can be
found in the{' '}
MDN Documentation
>
);
}