(
({ children, className, ...rest }, ref) => {
const repsonsiveClassNames: string[] = []
BREAKPOINTS.forEach((bp) => {
const breakpoint = rest[bp]
delete rest[bp]
breakpoint && repsonsiveClassNames.push(`container-${bp}`)
})
return (
0 ? repsonsiveClassNames : 'container',
className
)}
{...rest}
ref={ref}
>
{children}
)
}
)
CContainer.propTypes = {
children: PropTypes.node,
className: PropTypes.string,
sm: PropTypes.bool,
md: PropTypes.bool,
lg: PropTypes.bool,
xl: PropTypes.bool,
xxl: PropTypes.bool,
fluid: PropTypes.bool,
}
CContainer.displayName = 'CContainer'