import { useState } from "react" interface Task { id: string title: string platform: "wordpress" | "substack" | "paypal" | "pinterest" | "apple-music" metrics?: string } interface Column { id: string title: string count: number date: string tasks: Task[] } const platformIcons = { wordpress: (
W
), substack: (
S
), paypal: (
P
), pinterest: (
P
), "apple-music": (
A
), } const initialData: Column[] = [ { id: "published", title: "Published", count: 10, date: "Since 23 Oct 2025", tasks: [ { id: "1", title: "Questions to ask your CPA Published o...", platform: "wordpress", }, { id: "2", title: "Substack DR 97 DA 95", platform: "substack", }, { id: "3", title: "Paypal DR 97 DA 95 Traffic", platform: "paypal", }, { id: "4", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "5", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "6", title: "Substack DR 97 DA 95 Traffic", platform: "substack", }, { id: "7", title: "Paypal DR 97 DA 95 Traffic 3,989,220", platform: "paypal", }, { id: "8", title: "Apple Music DR 97 DA 95 Traffic", platform: "apple-music", }, { id: "9", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "10", title: "Questions to ask your CPA Published o...", platform: "wordpress", }, ], }, { id: "in-progress", title: "In Progress", count: 10, date: "23 Oct 2025", tasks: [ { id: "11", title: "Questions to ask your CPA Published o...", platform: "wordpress", }, { id: "12", title: "Substack DR 97 DA 95", platform: "substack", }, { id: "13", title: "Paypal DR 97 DA 95 Traffic", platform: "paypal", }, { id: "14", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "15", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "16", title: "Substack DR 97 DA 95 Traffic", platform: "substack", }, { id: "17", title: "Paypal DR 97 DA 95 Traffic 3,989,220", platform: "paypal", }, { id: "18", title: "Apple Music DR 97 DA 95 Traffic", platform: "apple-music", }, { id: "19", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "20", title: "Questions to ask your CPA Published o...", platform: "wordpress", }, ], }, { id: "next-month", title: "Next month", count: 10, date: "23 Nov 2025", tasks: [ { id: "21", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "22", title: "Substack DR 97 DA 95", platform: "substack", }, { id: "23", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "24", title: "Paypal DR 97 DA 95 Traffic", platform: "paypal", }, { id: "25", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "26", title: "Substack DR 97 DA 95 Traffic", platform: "substack", }, { id: "27", title: "Paypal DR 97 DA 95 Traffic 3,989,220", platform: "paypal", }, { id: "28", title: "Apple Music DR 97 DA 95 Traffic", platform: "apple-music", }, { id: "29", title: "Pinterest DR 97 DA 95 Traffic 3,989,220", platform: "pinterest", }, { id: "30", title: "Questions to ask your CPA Published o...", platform: "wordpress", }, ], }, ] function ShowDetails() { const [columns, setColumns] = useState(initialData) return (
{columns.map((column) => (
{/* Column Header */}

{column.title}

{column.count}

{column.date}

{/* Tasks List */}
{column.tasks.map((task) => (
{platformIcons[task.platform]}

{task.title}

))}
))}
) } export default ShowDetails