import { formatCurrentDate, getGreeting, } from "@/features/dashboard/widget-registry/welcome-widget"; type DashboardWelcomeProps = { name?: string | null; }; export function DashboardWelcome({ name }: DashboardWelcomeProps) { const displayName = name && name.trim().length > 0 ? name : "Administrador"; const formattedDate = formatCurrentDate(); const greeting = getGreeting(); return (

{greeting}, {displayName}

{formattedDate}

); }