'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 (

Color Playground

Interactive color manipulation and analysis tool

{/* Left Column: Color Picker and Display */}

Color Picker

Preview

{/* Right Column: Color Information */}

Color Information

{isLoading && (
)} {isError && (

Error loading color information

{error?.message || 'Unknown error'}

)} {colorInfo && }

Color Manipulation

); }