diff --git a/templates/jsx/price-chart/price-chart-example.jsx b/templates/jsx/price-chart/price-chart-example.jsx new file mode 100644 index 0000000..c5765ec --- /dev/null +++ b/templates/jsx/price-chart/price-chart-example.jsx @@ -0,0 +1,20 @@ +--- +label: price-chart voorbeeld +description: Prijsgrafiek met forecast-overlay +type: price-chart +author: maik +--- + +import React from 'react'; + +export default function PriceChartTemplate({ data }) { + const prices = data?.prices ?? []; + const max = Math.max(...prices, 1); + return ( +
+ {prices.map((p, i) => ( +
+ ))} +
+ ); +}