mirror of
https://github.com/ConvoyPanel/panel.git
synced 2026-06-11 15:06:02 +08:00
15 lines
289 B
TypeScript
15 lines
289 B
TypeScript
import styled from '@emotion/styled'
|
|
import tw from 'twin.macro'
|
|
|
|
interface Props {
|
|
padding?: boolean
|
|
}
|
|
|
|
const ContentContainer = styled.div<Props>`
|
|
${tw`max-w-7xl mx-auto px-4 sm:px-6 lg:px-8`}
|
|
|
|
${({ padding }) => (padding ? tw`py-6` : '')}
|
|
`
|
|
|
|
export default ContentContainer
|