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 StatAccentProps {}

/*-- Main --*/

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

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