'use client' import Link from 'next/link' import { Note } from '@/types/note' import { NoteList } from './note-list' import { Button } from '@/components/ui/button' import { SearchBar } from './search-bar' import { ArrowRight, TrendingUp, Terminal, Code, Zap } from 'lucide-react' interface DashboardProps { recentNotes: Note[] mostUsedNotes: Note[] recentCommands: Note[] recentSnippets: Note[] activityBasedNotes: Note[] hasActivity: boolean } export function Dashboard({ recentNotes, mostUsedNotes, recentCommands, recentSnippets, activityBasedNotes, hasActivity, }: DashboardProps) { return ( <>
{/* Recientes */}

Recientes

{recentNotes.length > 0 ? ( ) : ( )}
{/* Más usadas */} {mostUsedNotes.length > 0 && (

Más usadas

)} {/* Comandos recientes */} {recentCommands.length > 0 && (

Comandos recientes

)} {/* Snippets recientes */} {recentSnippets.length > 0 && (

Snippets recientes

)} {/* Según tu actividad */} {hasActivity && activityBasedNotes.length > 0 && (

Según tu actividad

)}
) } function EmptyState() { return (

No hay notas todavía.

) }