import * as React from 'react'; import { Box, Header, ICSSInJSStyle, Segment } from '@fluentui/react-northstar'; interface PrototypeSectionProps { title?: React.ReactNode; styles?: ICSSInJSStyle; } interface ComponentPrototypeProps extends PrototypeSectionProps { description?: React.ReactNode; } export const PrototypeSection: React.FunctionComponent = props => { const { title, children, styles, ...rest } = props; return ( {title &&
{title}
} {children}
); }; export const ComponentPrototype: React.FunctionComponent = props => { const { description, title: header, children, styles, ...rest } = props; return ( {(header || description) && ( {header &&
{header}
} {description &&

{description}

}
)} {children}
); };