import React from 'react';
import { clsx } from 'clsx';

import { forwardRef } from '../utils/react';
import { Box } from '../box';
import * as css from './container.css';

export interface ContainerProps {}

export const Container = forwardRef<'div', ContainerProps>(function Container(
  { className, children, ...rest },
  ref,
) {
  const cn = clsx(className, css.container);

  return (
    <Box ref={ref} className={cn} {...rest}>
      {children}
    </Box>
  );
});
