Files
openmonetis/src/features/dashboard/components/dashboard-welcome.tsx
Felipe Coutinho 137b63f256 style(format): corrigir formatação Biome em 5 arquivos
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 19:54:56 +00:00

24 lines
655 B
TypeScript

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 (
<section className="py-4 space-y-1">
<h1 className="text-xl tracking-tight">
<span className="text-muted-foreground">{greeting},</span> {displayName}
</h1>
<h2 className="text-sm text-muted-foreground">{formattedDate}</h2>
</section>
);
}