flowstate/app/(app)/trash/components/TrashHeader.tsx
Chneemann a60851ac07
All checks were successful
Deploy Flowstate to VPS / deploy (push) Successful in 1m27s
refactor(lib): consolidate services, types, utils, and actions into lib folder and update import paths
2026-08-23 16:44:18 +02:00

35 lines
1 KiB
TypeScript

/**
* @file app/(app)/trash/components/TrashHeader.tsx
* @description Client component rendering the header section for the trash view, including an icon, title, description, and navigation back to the dashboard.
*/
"use client";
import { GoBackButton } from "@/app/components/ui/buttons/GoBackButton";
import { Trash2 } from "lucide-react";
/**
* Renders the trash page header featuring title details, an indicator icon,
* and a link to navigate back to the main dashboard.
*
* @returns {JSX.Element} The rendered trash header component.
*/
export default function TrashHeader() {
return (
<>
<div className="flex items-center gap-3 mb-4">
<div className="p-3 bg-rose-500/10 text-rose-500 rounded-2xl">
<Trash2 size={24} />
</div>
<div>
<h1 className="text-2xl font-bold">Trash</h1>
<p className="text-sm text-foreground-muted">
Tasks removed from your board.
</p>
</div>
</div>
<GoBackButton fallbackUrl="/dashboard" label="Dashboard" />
</>
);
}