Created
October 30, 2018 23:09
-
-
Save j-/76ff8a7c1b64127b8a773b631d763e38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as React from 'react'; | |
export interface Props { | |
children: number; | |
} | |
const Dollars: React.StatelessComponent<Props> = ({ children }) => ( | |
<> | |
{children.toLocaleString('en-AU', { | |
style: 'currency', | |
currency: 'AUD', | |
})} | |
</> | |
); | |
export default Dollars; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment