'use client';
import { useRouter } from 'next/navigation';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card';
import { FileText, Layout, Upload, BookOpen } from 'lucide-react';
interface AppTile {
id: string;
title: string;
description: string;
icon: React.ReactNode;
href: string;
color: string;
}
export default function DashboardPage() {
const router = useRouter();
const apps: AppTile[] = [
{
id: 'files',
title: 'Files',
description: 'Manage and organize your uploaded files',
icon: ,
href: '/files',
color: 'bg-blue-500'
},
{
id: 'layout-configurations',
title: 'Layout Configurations',
description: 'Create and manage layout configurations',
icon: ,
href: '/layout-configurations',
color: 'bg-green-500'
},
{
id: 'imports',
title: 'Imports',
description: 'Import and manage data from external sources',
icon: ,
href: '/imports',
color: 'bg-purple-500'
},
{
id: 'api-docs',
title: 'API Documentation',
description: 'Explore API endpoints and documentation',
icon: ,
href: '/api-docs',
color: 'bg-orange-500'
}
];
const handleAppClick = (href: string) => {
router.push(href);
};
return (
Welcome to Vtorio Dashboard
Select an application to get started
{apps.map((app) => (
handleAppClick(app.href)}
>
{app.icon}
{app.title}
{app.description}
))}
Click on any application to access its features
);
}