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

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

/*-- Types --*/

export interface StatProps {}

/*-- Main --*/

export const Stat = forwardRef<'div', StatProps>(function Stat(
  { className, children, ...rest },
  ref,
) {
  const cn = clsx(className, css.stat);

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