mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-15 08:43:44 +08:00
34 lines
1.1 KiB
TypeScript
34 lines
1.1 KiB
TypeScript
/**
|
|
* FavoritesHeader - Header component for favorites sidebar
|
|
* Matches HistoryHeader design for consistency
|
|
*/
|
|
|
|
import { Icons } from '@/components/ui/Icon';
|
|
|
|
interface FavoritesHeaderProps {
|
|
onClose: () => void;
|
|
}
|
|
|
|
export function FavoritesHeader({ onClose }: FavoritesHeaderProps) {
|
|
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.Heart size={24} className="text-[var(--accent-color)]" />
|
|
<h2
|
|
id="favorites-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>
|
|
);
|
|
}
|