import clsx from 'clsx'; import React from 'react'; import { FiSearch } from 'react-icons/fi'; import { LuNotebookPen } from 'react-icons/lu'; import { MdArrowBackIosNew, MdOutlinePushPin, MdPushPin } from 'react-icons/md'; import { useTranslation } from '@/hooks/useTranslation'; import { useResponsiveSize } from '@/hooks/useResponsiveSize'; const NotebookHeader: React.FC<{ isPinned: boolean; isSearchBarVisible: boolean; handleClose: () => void; handleTogglePin: () => void; handleToggleSearchBar: () => void; showSearchButton?: boolean; }> = ({ isPinned, isSearchBarVisible, handleClose, handleTogglePin, handleToggleSearchBar, showSearchButton = true, }) => { const _ = useTranslation(); const iconSize14 = useResponsiveSize(14); const iconSize18 = useResponsiveSize(18); return (
{_('Notebook')}
{showSearchButton && (
)}
); }; export default NotebookHeader;