import { Button, buttonVariants } from "@/components/ui/button" import { Card, CardContent, CardHeader } from "@/components/ui/card" import { Label } from "@/components/ui/label" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { Separator } from "@/components/ui/separator" import { Slider } from "@/components/ui/slider" import { Switch } from "@/components/ui/switch" import { Download, Pause, Play, RotateCcw, Settings, Share2 } from "lucide-react" import { useState } from "react" export const Control = () => { const [selectedLocation, setSelectedLocation] = useState('beijing'); const handleLocationChange = (value: string) => { setSelectedLocation(value); } const [selectedLayer, setSelectedLayer] = useState('precipitation'); const handleLayerChange = (value: string) => { setSelectedLayer(value); } const [isPlaying, setIsPlaying] = useState(false); const togglePlayback = () => { setIsPlaying(!isPlaying); } const [animationSpeed, setAnimationSpeed] = useState([1.0]); const resetAnimation = () => { setAnimationSpeed([1.0]); } const [radarVisible, setRadarVisible] = useState(true); const [showLegend, setShowLegend] = useState(true); const [opacity, setOpacity] = useState([0.5]); return (

控制面板

{/* Layer Selection */}
{/* Animation Controls */}
{/* Display Options */}
雷达图层
图例
{/* Export Options */}
) }