'use client' import { ColorPicker } from '@/components/color-picker' import { Button } from '@/components/ui/button' import { Checkbox } from '@/components/ui/checkbox' import { Slider } from '@/components/ui/slider' import { TriangleAlert } from 'lucide-react' import React, { useEffect, useState, useTransition } from 'react' import { BarChartMixed, BarChartMultiple, PieChartDonut, LineChartMultiple, RadialChartGrid, RadarChartLines } from './_components' import { Calendar } from '@/components/ui/calendar' import { DateRange } from 'react-day-picker' import { RadialChartShape } from './_components/radial-chart-shape' import { Progress } from '@/components/ui/progress' import { Switch } from '@/components/ui/switch' import { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from '@/components/ui/card' import { Input } from '@/components/ui/input' import { Label } from '@/components/ui/label' import { toast } from 'react-hot-toast' export default function () { const [progress, setProgress] = useState(0) const [email, setEmail] = useState('') useEffect(() => { const interval = setInterval(() => { setProgress((prevProgress) => { const newProgress = (prevProgress + 10) % 101 return newProgress }) }, 1000) return () => clearInterval(interval) }, []) const handleSubmit = async (e: any) => { e.preventDefault() const email = e.target.email.value try { const response = await fetch('/api/emails', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ email }) }) const data = await response.json() if (data.message) { toast.success(data.message) setEmail('') } else { console.error(data, 'ha') } } catch (error) { console.error('Error:', error) } } return (
If you refresh the page, it will reset the colors. Update{' '} globals.css{' '} with your new colors.
Primary color
Primary text color
Components
Get the Starter Kit Receive the Starter Kit for free in your mailbox.
setEmail(e.target.value)} required />
Chart Color 1
Chart Color 2
Chart Color 3
Chart Color 4
Chart Color 5
Charts
) }