Components
Loading preview...
Email categories component for building email client app.
@dailydischq
npx shadcn@latest add https://21st.dev/r/dailydischq/email-categoriesimport CategoriesSection from '../components/ui/email-categories';
const App = () => {
const handleCategoryClick = (folderType: string) => {
console.log('Selected category:', folderType);
};
const mockUnreadCounts = {
INBOX: 25,
SENT: 0,
DRAFT: 3,
TRASH: 0,
SPAM: 5,
STARRED: 2,
ARCHIVE: 0,
};
return (
<div className="w-64 bg-white border rounded-lg">
<CategoriesSection
onCategoryClick={handleCategoryClick}
systemUnreadCounts={mockUnreadCounts}
/>
</div>
);
};
export default App;