"use client";
import {ThemeProvider as LibraryDemoThemeProvider} from "next-themes";
import { ChartRings } from "@/components/ui/tweenly-chart-rings"
const data = [
{ goal: "Move", value: 420, target: 600 },
{ goal: "Exercise", value: 38, target: 30 },
{ goal: "Stand", value: 9, target: 12 },
]
export function Demo() {
return (
<ChartRings
data={data}
title="Daily goals"
description="Today, 6:40 PM"
nameKey="goal"
valueKey="value"
maxKey="target"
/>
)
}
function SourceSpecimen(){return <Demo/>}
export default function LibraryRegistryPreview(){return <LibraryDemoThemeProvider defaultTheme="dark" enableSystem={false}><div data-component-demo data-demo-theme="dark" data-theme="dark" className="dark" style={{background:"var(--background)",color:"var(--foreground)"}}><div className="relative w-full min-w-0 max-w-5xl min-h-[400px] flex items-center justify-center"><SourceSpecimen/></div></div></LibraryDemoThemeProvider>}