(timestamp: number)
| 176 | } |
| 177 | |
| 178 | function dateFromTimestamp(timestamp: number) { |
| 179 | return new Date(timestamp * 1000).toISOString().slice(0, 10); |
| 180 | } |
| 181 | |
| 182 | function price(value: string | undefined) { |
| 183 | if (value === undefined) return undefined; |