Function Money

Renders a formatted dollar amount with a dollar sign and parentheses if the amount is negative.

  • Parameters

    • props: PropsWithChildren<
          { amount: number; currency?: string; decimal_places?: boolean },
      >
    • Optionalcontext: any

    Returns ReactElement<any, any>

Properties

contextTypes?: ValidationMap<any>
defaultProps?: Partial<
    { amount: number; currency?: string; decimal_places?: boolean },
>
displayName?: string
propTypes?: WeakValidationMap<
    { amount: number; currency?: string; decimal_places?: boolean },
>