import { ClipboardList, EyeOff, Info, User, UserCheck } from "lucide-react"; import React from "react"; export default function BoxDashboard({ value, title, }: { value: string; title: string; }) { const boxIcons = { "درخواست ناشناس": , "درخواست شناس": , درخواست: , کاربر: , }; const handelIcon = (item: keyof typeof boxIcons) => { const icon = boxIcons[item]; return icon; }; const checkIcon = boxIcons[title as keyof typeof boxIcons] ? ( boxIcons[title as keyof typeof boxIcons] ) : ( ); return (
{checkIcon ? checkIcon : } {/* */}

{value}

{title}

); }