import type { ComponentPropsWithRef, ReactNode } from 'react';
import type React from 'react';
import { cn } from '@wener/console';
import { isDefined } from '@wener/utils';
import { EmptyPlaceholder } from './EmptyPlaceholder';
import { formatAmount } from './formatAmount';
export const AmountFormat: React.FC<
{
value?: string | number;
placeholder?: ReactNode;
} & ComponentPropsWithRef<'div'>
> = ({ value, placeholder =