"use client"; import { memo, Fragment } from "react"; import { cls, shouldUseInvertedText } from "@/lib/utils"; import { useTheme } from "@/providers/themeProvider/ThemeProvider"; import type { LucideIcon } from "lucide-react"; import type { InvertedBackground } from "@/providers/themeProvider/config/constants"; export type TaskItem = { icon: LucideIcon; label: string; time: string; }; interface Bento3DTaskListProps { title: string; items: TaskItem[]; useInvertedBackground: InvertedBackground; className?: string; } const Bento3DTaskList = ({ title, items, useInvertedBackground, className = "", }: Bento3DTaskListProps) => { const theme = useTheme(); const shouldUseLightText = shouldUseInvertedText(useInvertedBackground, theme.cardStyle); return (

{title}

{items.map((item, index) => { const Icon = item.icon; return (

{item.label}

{item.time}

{index !== items.length - 1 && (
)} ); })}
); }; Bento3DTaskList.displayName = "Bento3DTaskList"; export default memo(Bento3DTaskList);