"use client" import { useState } from "react" import { Card } from "../ui/card" import { Button } from "../ui/button" import { Input } from "../ui/input" import { ChevronLeft, Search, Plus } from "lucide-react" import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../ui/table" interface ContentLibrary { id: string name: string type: string count: number } const mockLibraries: ContentLibrary[] = [ { id: "1", name: "卡若朋友圈", type: "朋友圈", count: 307, }, { id: "2", name: "业务推广内容", type: "朋友圈", count: 156, }, ] export function ContentSelector({ onPrev, onFinish }) { const [selectedLibraries, setSelectedLibraries] = useState([]) return (

选择内容库

} />
选择 内容库名称 类型 内容数量 操作 {mockLibraries.map((library) => ( { if (e.target.checked) { setSelectedLibraries([...selectedLibraries, library.id]) } else { setSelectedLibraries(selectedLibraries.filter((id) => id !== library.id)) } }} /> {library.name} {library.type} {library.count} ))}
) }