Files
DataStack/components/layout/AdminPageHeader.tsx
T
Team Dark Devil 1a1c19d7bb feat: implement local caching for vCon data
Persist clients, storage stats, and file lists in local cache to improve initial load performance. Added breadcrumb navigation to the AdminPageHeader.
2026-11-16 23:10:44 +06:00

30 lines
947 B
TypeScript

import Link from 'next/link';
import React from 'react';
interface AdminPageHeaderProps {
title: string;
actions?: React.ReactNode;
}
export function AdminPageHeader({ title, actions }: AdminPageHeaderProps) {
return (
<header className="mb-3 flex min-h-8 flex-wrap items-center justify-between gap-2 border-b border-[var(--border)] pb-2.5">
<div className="flex min-w-0 items-center gap-1.5">
<Link
href="/vcon/dashboard"
className="text-[11.5px] text-[var(--text-faint)] hover:text-[var(--text-muted)]"
>
Console
</Link>
<span className="text-[11px] text-[var(--border-strong)]" aria-hidden="true">
/
</span>
<h1 className="truncate text-[13.5px] font-medium tracking-tight text-[var(--text)]">
{title}
</h1>
</div>
{actions && <div className="flex items-center gap-1.5">{actions}</div>}
</header>
);
}