import styles from './styles.module.scss'
import classNames from 'classnames'

type ContainerProps = {
  children: React.ReactNode,
  flex?: boolean
  position?: "center" | "left" | "right",
  textAlign?: "left" | "center" | "right",
}

export const Container = ({ children, position = "center", textAlign="left" }: ContainerProps) => {
  return <div className={classNames({
    [styles.container]: true,
    [styles.right]: position === "right",
  })} style={{ textAlign }}>{children}</div>
}
