mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-13 07:43:43 +08:00
29 lines
1013 B
TypeScript
29 lines
1013 B
TypeScript
import { Icons } from '@/components/ui/Icon';
|
|
|
|
interface HistoryHeaderProps {
|
|
onClose: () => void;
|
|
}
|
|
|
|
export function HistoryHeader({ onClose }: HistoryHeaderProps) {
|
|
return (
|
|
<header className="flex items-center justify-between mb-6 pb-4 border-b border-[var(--glass-border)]">
|
|
<div className="flex items-center gap-3">
|
|
<Icons.History size={24} className="text-[var(--accent-color)]" />
|
|
<h2
|
|
id="history-sidebar-title"
|
|
className="text-xl font-semibold text-[var(--text-color)]"
|
|
>
|
|
观看历史
|
|
</h2>
|
|
</div>
|
|
<button
|
|
onClick={onClose}
|
|
className="p-2 hover:bg-[var(--glass-bg)] rounded-full transition-colors cursor-pointer"
|
|
aria-label="关闭"
|
|
>
|
|
<Icons.X size={24} className="text-[var(--text-color-secondary)]" />
|
|
</button>
|
|
</header>
|
|
);
|
|
}
|