1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 05:41:41 +02:00
market/src/components/atoms/Container.tsx

24 lines
493 B
TypeScript

import React, { ReactElement, ReactNode } from 'react'
import classNames from 'classnames/bind'
import styles from './Container.module.css'
const cx = classNames.bind(styles)
export default function Container({
children,
narrow,
className
}: {
children: ReactNode
narrow?: boolean
className?: string
}): ReactElement {
const styleClasses = cx({
container: true,
narrow: narrow,
[className]: className
})
return <div className={styleClasses}>{children}</div>
}