import ReefIcon from "./../assets/ReefIcon" import { formatAmount } from "./../../utils/format" export interface Props { value?: string | number, className?: string, children?: any } const Amount = ({ value, className, children }: Props): JSX.Element => { return (
{ (!!value || !!children) && } {children}{formatAmount(value)}
) } export default Amount