import React from 'react' const baseCard = 'group rounded-2xl border border-white/10 bg-[#0b1826]/85 p-4 shadow-lg shadow-black/20 transition hover:-translate-y-0.5 hover:border-sky-300/35 hover:bg-[#102033]' export default function QuickActions({ isCreator, receivedCommentsCount = 0, onNavigate }) { const actions = [ { key: 'edit-profile', label: 'Edit Profile', href: '/dashboard/profile', icon: 'fa-solid fa-user-gear', description: 'Refresh your bio, socials, avatar, and country details.', }, { key: 'received-comments', label: 'Review Feedback', href: '/dashboard/comments/received', icon: 'fa-solid fa-inbox', description: 'Read the latest comments left on your work.', badge: receivedCommentsCount > 0 ? `${receivedCommentsCount} new` : null, }, { key: 'notifications', label: 'Open Notifications', href: '/dashboard/notifications', icon: 'fa-solid fa-bell', description: 'Catch up on mentions, replies, and updates.', }, ...(isCreator ? [ { key: 'manage-artworks', label: 'Manage Artworks', href: '/dashboard/artworks', icon: 'fa-solid fa-layer-group', description: 'Edit titles, details, and the presentation of your portfolio.', }, { key: 'write-story', label: 'Write Story', href: '/creator/stories/create', icon: 'fa-solid fa-pen-nib', description: 'Publish a tutorial, devlog, showcase, or announcement.', }, { key: 'open-studio', label: 'Open Studio', href: '/studio', icon: 'fa-solid fa-compass-drafting', description: 'Jump into the wider creator workspace and analytics tools.', }, { key: 'creator-stories', label: 'Story Dashboard', href: '/creator/stories', icon: 'fa-solid fa-newspaper', description: 'Review creator stories, drafts, and publishing flow in one place.', }, ] : [ { key: 'upload-artwork', label: 'Upload Artwork', href: '/upload', icon: 'fa-solid fa-cloud-arrow-up', description: 'Start publishing and unlock more creator-focused dashboard tools.', }, { key: 'explore-trending', label: 'Explore Trending', href: '/discover/trending', icon: 'fa-solid fa-fire-flame-curved', description: 'Browse what is hot right now to spot styles and creators worth following.', }, { key: 'find-creators', label: 'Find Creators', href: '/creators/top', icon: 'fa-solid fa-user-group', description: 'Discover artists to follow and build a stronger feed around your taste.', }, { key: 'saved-favorites', label: 'Open Favorites', href: '/dashboard/favorites', icon: 'fa-solid fa-bookmark', description: 'Revisit saved work and start shaping your own inspiration library.', }, ]), ] return (

Quick Actions

Start something useful right now

{isCreator ? 'Creator Mode' : 'Member Mode'}
{actions.map((action) => ( onNavigate?.(action.href, action.label)} className={baseCard}>