'use client'; import { Bar } from 'react-chartjs-2'; import prisma from '@lib/prisma'; import Head from 'next/head'; import { Chart as ChartJS, CategoryScale, LinearScale, PointElement, LineElement, Title, Tooltip, Legend, Filler } from 'chart.js'; ChartJS.register(CategoryScale, LinearScale, PointElement, LineElement, Filler, Title, Tooltip, Legend); interface IPower { date: string; value: number; } interface IChart { labels: string[]; datasets: [ { label: string; data: number[]; fill: true; backgroundColor: string; borderColor: string; } ]; } export default function Results() { return ( <> Solar ); }