import * as React from 'react'; import * as _ from 'lodash'; import { Accordion, Segment } from '@fluentui/react-northstar'; import ComponentExampleTitle from '../ComponentExample/ComponentExampleTitle'; import ComponentExample from '../ComponentExample'; import { ComponentBundleSizeChart } from './ComponentBundleSizeChart'; export interface ComponentBundleSizeExampleProps { title: React.ReactNode; description?: React.ReactNode; examplePath: string; } const ComponentBundleSizeExample: React.FunctionComponent = props => { const { title, description, examplePath } = props; // "components/Divider/Performance/Divider.bsize" -> dividerBSizeTsxJs const perfTestName = `${_.camelCase(_.last(examplePath.split('/')))}TsxJs`; return ( { return { fontSize: theme.siteVariables.fontSizes.smaller, }; }, }, content: { key: 'c', content: , // resetTheme to make sure the bundle size example contains the theme }, }, ] as any[] } /> ); }; export default ComponentBundleSizeExample;