35 lines
1 KiB
TypeScript
35 lines
1 KiB
TypeScript
/**
|
|
* @file 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" />
|
|
</>
|
|
);
|
|
}
|