import clsx from 'clsx'; import React from 'react'; import { GiBookshelf } from 'react-icons/gi'; import { FiSearch } from 'react-icons/fi'; import { MdOutlineMenu, MdOutlinePushPin, MdPushPin } from 'react-icons/md'; import { MdArrowBackIosNew } from 'react-icons/md'; import { useResponsiveSize } from '@/hooks/useResponsiveSize'; import { useTrafficLightStore } from '@/store/trafficLightStore'; import Dropdown from '@/components/Dropdown'; import BookMenu from './BookMenu'; const SidebarHeader: React.FC<{ isPinned: boolean; isSearchBarVisible: boolean; onGoToLibrary: () => void; onClose: () => void; onTogglePin: () => void; onToggleSearchBar: () => void; }> = ({ isPinned, isSearchBarVisible, onGoToLibrary, onClose, onTogglePin, onToggleSearchBar }) => { const { isTrafficLightVisible } = useTrafficLightStore(); const iconSize14 = useResponsiveSize(14); const iconSize18 = useResponsiveSize(18); const iconSize22 = useResponsiveSize(22); return (
} >
); }; export default SidebarHeader;