"use client" import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card" import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs" import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select" import { PieChart, BarChart } from "@/components/charts" import { Collapsible, CollapsibleContent, CollapsibleTrigger } from "@/components/ui/collapsible" import { ChevronDown, ChevronRight } from "lucide-react" import { useState } from "react" export function UserProfileOverview() { const [openSections, setOpenSections] = useState({ gender: true, age: true, occupation: false, income: false, region: false, device: false, activity: false, interest: false, }) const toggleSection = (section) => { setOpenSections((prev) => ({ ...prev, [section]: !prev[section], })) } return (

用户画像概览

toggleSection("gender")}> 用户性别分布 {openSections.gender ? : } toggleSection("age")}> 用户年龄分布 {openSections.age ? : }
人口统计 地理分布 行为特征 兴趣爱好
toggleSection("occupation")}> 职业分布 {openSections.occupation ? ( ) : ( )} toggleSection("income")}> 收入水平 {openSections.income ? : }
toggleSection("region")}> 地区分布 {openSections.region ? : }
toggleSection("activity")}> 活跃时段 {openSections.activity ? : } toggleSection("device")}> 使用设备 {openSections.device ? : }
toggleSection("interest")}> 兴趣标签分布 {openSections.interest ? : }
) }