'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 (
		<>
			<Head>
				<title>Solar</title>
				<meta name="description" content="Generated by create next app" />
				<meta name="viewport" content="width=device-width, initial-scale=1" />
				<link rel="icon" href="/favicon.ico" />
			</Head>
		</>
	);
}
