mirror of
https://github.com/plausible/analytics.git
synced 2025-01-03 07:08:04 +03:00
35107e2b8f
* Extract <Money> React component * Unhide prop breakdown for revenue goals * Query revenue metrics on prop breakdown API
11 lines
193 B
JavaScript
11 lines
193 B
JavaScript
import React from 'react'
|
|
|
|
export default function Money({ formatted }) {
|
|
if (formatted) {
|
|
return <span tooltip={formatted.long}>{formatted.short}</span>
|
|
} else {
|
|
return "-"
|
|
}
|
|
}
|
|
|