import React, {ReactNode} from 'react'
import useClassNames from '../../shared/useClassNames'
import './index.less'

interface Props {
  children?: ReactNode
  className?: string
  prefixCls?: string
}

const WrapperCenter: React.FC = (props: Props) => {
  const {children, className, prefixCls} = props
  const newClassName = useClassNames('wrapper-center', prefixCls, {}, className)
  return <div className={newClassName}>{children}</div>
}

export default WrapperCenter
