'use client'; import { useState } from 'react'; import { ColorPicker } from '@/components/color/ColorPicker'; import { ColorDisplay } from '@/components/color/ColorDisplay'; import { ColorInfo } from '@/components/color/ColorInfo'; import { ManipulationPanel } from '@/components/tools/ManipulationPanel'; import { useColorInfo } from '@/lib/api/queries'; import { Loader2 } from 'lucide-react'; export default function PlaygroundPage() { const [color, setColor] = useState('#ff0099'); const { data, isLoading, isError, error } = useColorInfo({ colors: [color], }); const colorInfo = data?.colors[0]; return (
Interactive color manipulation and analysis tool
Error loading color information
{error?.message || 'Unknown error'}