import styled from "@emotion/styled"; import {MAX_WIDTH} from "../media"; type ContainerProps = { backgroundColor?: string; }; export const OuterContainer = styled.section( (props) => ` display: block; width: 100%; ${props.backgroundColor && `background-color: var(--${props.backgroundColor});`} `, ); export const InnerContainer = styled.div((props) => { return ` max-width: ${MAX_WIDTH}; margin: 0px auto; ${ props.backgroundColor === "bg-color-tertiary" ? `background-color: #fff` : "" } `; }); export const Container = ({ children, backgroundColor, }: { children: any; backgroundColor?: string; }) => ( {children} );