17 lines
291 B
TypeScript
17 lines
291 B
TypeScript
import styled from 'styled-components';
|
|
|
|
interface ContainerProps {
|
|
wide?: boolean;
|
|
}
|
|
|
|
const Container =
|
|
styled.div <
|
|
ContainerProps >
|
|
`
|
|
max-width: 77.5rem;
|
|
margin: 0 auto;
|
|
width: ${props => (props.wide ? '100%' : 'calc(100% - 5rem)')};
|
|
`;
|
|
|
|
export { Container };
|