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

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

/*-- Types --*/

export interface SelectContainerProps {}

/*-- Main --*/

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

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