import { BaseProps } from 'docusaurus-plugin-examples/types' ; import { ExampleIFrame } from './example-iframe-component' ; import { ExampleSource } from './example-source-component' ; import { ToggleLanguage } from './toggle-language-component' ; export interface ExampleProps extends BaseProps { default hideSource ? : boolean ; default hideSandbox ? : boolean ; } export const Example = ( props ) => { const { name , hideSource } = props ; return ( < div > < ToggleLanguage /> < ExampleIFrame name = { name } / > { ! hideSource && < ExampleSource name = { name } />} < /div>); } ;