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

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

export interface DialogBodyProps {}

export const DialogBody = forwardRef<'div', DialogBodyProps>(
  function DialogBody({ children, className, ...rest }, ref) {
    const cn = clsx(className, css.body);

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