({
value,
formatOptions
}: {
value: NumberValue;
formatOptions?: Intl.NumberFormatOptions;
})
| 272 | } |
| 273 | |
| 274 | function FormattedNumber({ |
| 275 | value, |
| 276 | formatOptions |
| 277 | }: { |
| 278 | value: NumberValue; |
| 279 | formatOptions?: Intl.NumberFormatOptions; |
| 280 | }) { |
| 281 | let formatter = useNumberFormatter(formatOptions); |
| 282 | if (typeof value === 'object') { |
| 283 | return <>{formatter.formatRange(value.start, value.end)}</>; |
| 284 | } |
| 285 | return <>{formatter.format(value)}</>; |
| 286 | } |
| 287 | |
| 288 | function FormattedDate<T extends DateTimeValue>({ |
| 289 | value, |
nothing calls this directly
no test coverage detected