type FormattedNumberProps = {
  value: number;
  type?: "standard" | "compact";
};

const FormattedNumber = ({
  value,
  type,
}: FormattedNumberProps) => {
  return (
    <>{new Intl.NumberFormat("en-US", { notation: type }).format(value)}</>
  );
};

export { FormattedNumber, FormattedNumberProps };
