import React, { useState } from 'react'; import { AccountSwitcher } from './account-switcher'; import { MailList } from './mail-list'; import { MailDisplay } from './mail-display'; import { Nav } from './nav'; import { mails, accounts } from '../data'; export function Mail() { const [isCollapsed, setIsCollapsed] = useState(false); const [selectedMailId, setSelectedMailId] = useState(mails[0].id); const [activeTab, setActiveTab] = useState('all'); const filteredMails = activeTab === 'all' ? mails : mails.filter(mail => !mail.read); // Icons const ArchiveIcon = () => ( ); const TrashIcon = () => ( ); const DeleteIcon = () => ( ); const ClockIcon = () => ( ); const ArrowLeftIcon = () => ( ); const ArrowRightIcon = () => ( ); const MoreIcon = () => ( ); const SearchIcon = () => ( ); const navItems = [ { title: "Inbox", label: "128", icon: ( ), variant: "default" as const, }, { title: "Drafts", label: "9", icon: ( ), variant: "ghost" as const, }, { title: "Sent", icon: ( ), variant: "ghost" as const, }, { title: "Junk", label: "23", icon: ( ), variant: "ghost" as const, }, { title: "Trash", icon: ( ), variant: "ghost" as const, }, { title: "Archive", icon: ( ), variant: "ghost" as const, }, ]; return (
{/* Sidebar */}
{/* Mail list */}

Inbox

{/* Mail content */}
mail.id === selectedMailId) || null} />
); }