import { Story, Meta } from '@storybook/react' import { ContainerProps, ContainerSize } from './types' import Container from './Container' import styled from 'styled-components' const getOptions = (enumObject: Record) => Object.values(enumObject).filter((value) => typeof value === 'string') export default { component: Container, title: 'Layout/Container', parameters: { layout: 'fullscreen', }, } as Meta const StyledDiv = styled.div` height: 100px; background: ${({ theme }) => theme.colors.foreground}; color: ${({ theme }) => theme.colors.textSecondary}; display: flex; align-items: center; justify-content: center; ` export const Base: Story = (props) => ( ) Base.args = { size: 'full', } Base.argTypes = { size: { options: getOptions(ContainerSize), control: 'inline-radio', }, } export const PageLayout: Story = () => ( <> Header Content Footer )