import * as React from 'react'; import CodeBlock from '../../CodeBlock'; import { CodeSection } from '../../typings/story-section'; import { StoryConfig } from '../../typings/story-config'; export const code: (a: CodeSection, b: StoryConfig) => React.ReactNode = ( { source, components, compact = false, figmaLink, previewProps, interactive = true, autoRender, darkBackground = false, noBackground = false, initiallyOpen = false, title, hideCodeEditor = false, }, storyConfig, ) => { const playgroundComponents = storyConfig.config.playgroundComponents || {}; if (interactive) { const LiveCodeExample = React.lazy(() => import('../../LiveCodeExample')); return ( Loading...}> ); } return ; };