Files
DataStack/components/layout/AdminPageHeader.tsx
T

29 lines
947 B
TypeScript
Raw Normal View History

2026-11-16 23:10:44 +06:00
import Link from 'next/link';
2026-10-23 19:56:38 -07:00
import React from 'react';
interface AdminPageHeaderProps {
title: string;
actions?: React.ReactNode;
}
export function AdminPageHeader({ title, actions }: AdminPageHeaderProps) {
2026-10-23 19:56:38 -07:00
return (
2026-11-16 23:10:44 +06:00
<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>}
2026-10-23 19:56:38 -07:00
</header>
);
}