import { FC } from 'react'; import { resolveColor } from '@/utils/colorPalette'; import { cn, formatSpaceParameterValue, resolveViewPort } from '@/utils/styling'; import { ContainerProps } from '.'; export const Container: FC = ({ className, wrapperClassName, style, children, backgroundColor, spacing, border = '', fluidContent = false, height, maxWidth, ...rest }) => { const [ fixedSpacingValue, { marginTop, marginBottom, marginRight, marginLeft, paddingTop, paddingBottom, paddingRight, paddingLeft }, ] = formatSpaceParameterValue(spacing); const bg = resolveColor(backgroundColor, 'background'); return (
{children}
); };