"use client" import { useShadow } from "@/contexts/shadow-context" import { Card } from "@/components/ui/card" import { Label } from "@/components/ui/label" import { RadioGroup, RadioGroupItem } from "@/components/ui/radio-group" import { useTheme } from "next-themes" export function ShadowControl() { const { shadowDepth, setShadowDepth } = useShadow() const { theme } = useTheme() return (

Shadow Depth

setShadowDepth(value as any)}>
{(["none", "subtle", "medium", "pronounced"] as const).map((depth) => (
))}
) } // Helper function to get shadow preview values function getShadowPreview(depth: string, isDark: boolean): string { const shadowValues = { none: { light: "none", dark: "none", }, subtle: { light: "0 1px 2px rgba(0, 0, 0, 0.05)", dark: "0 1px 2px rgba(0, 0, 0, 0.15)", }, medium: { light: "0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06)", dark: "0 1px 3px rgba(0, 0, 0, 0.25), 0 1px 2px rgba(0, 0, 0, 0.15)", }, pronounced: { light: "0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06)", dark: "0 4px 6px rgba(0, 0, 0, 0.25), 0 2px 4px rgba(0, 0, 0, 0.15)", }, } return isDark ? shadowValues[depth as keyof typeof shadowValues].dark : shadowValues[depth as keyof typeof shadowValues].light }