accounts-frontend/packages/app/components/footerMenu/FooterMenu.story.tsx
2020-07-09 02:50:40 +03:00

20 lines
651 B
TypeScript

import React, { ComponentType, CSSProperties } from 'react';
import { storiesOf } from '@storybook/react';
import FooterMenu from './FooterMenu';
const PreviewWrapper: ComponentType<{ style?: CSSProperties }> = ({ style, children }) => (
<div style={{ padding: '25px', width: 320, boxSizing: 'border-box', ...style }}>{children}</div>
);
storiesOf('Components', module).add('FooterMenu', () => (
<div style={{ display: 'flex' }}>
<PreviewWrapper>
<FooterMenu />
</PreviewWrapper>
<PreviewWrapper style={{ backgroundColor: '#232323' }}>
<FooterMenu />
</PreviewWrapper>
</div>
));