import { Classes } from 'jss'; import React, { Component } from 'react'; import { render } from 'react-dom'; import injectSheet from 'react-jss'; import './stories/input'; import { WithTheme } from './withTheme'; import { store } from './stores'; const styles = { container: { display: 'flex', width: '100%', }, menu: { width: 300, position: 'fixed' as any, }, stories: { width: '100%', marginLeft: 320, paddingLeft: 40, paddingRight: 40, borderLeft: '1px solid #CFCFCF', }, sectionHeadline: { fontSize: 30, }, storyHeadline: { fontSize: 24, }, story: { paddingBottom: 40, marginBottom: 40, borderBottom: '1px solid #CFCFCF', }, }; const foo = { seas: 'bar', }; export const App = injectSheet(styles)(({ classes }: { classes: Classes }) => (
{store.stories.sections.map((section, key) => (

{section.name}

{section.stories.map((story, storyKey) => (

{story.name}

{story.component()}
))}
))}
));