import React from 'react'; import { linkTo } from '@storybook/addon-links'; import Text from '../Text'; import TextButton from '../TextButton'; import { classes } from './IncludedComponents.st.css'; import { IncludedComponent } from '../typings/story'; export type IncludedComponentsProps = { includedComponents?: IncludedComponent[]; }; const IncludedComponents: React.FC = ({ includedComponents, }) => (
{includedComponents.map((componentItem, id) => { const { category, title, optional } = componentItem; return (
{`<${title}/>`} {optional && ( Optional )}
); })}
); IncludedComponents.defaultProps = { includedComponents: [], }; export default IncludedComponents;