import { Tooltip } from 'antd'; import cn from 'classnames'; import React from 'react'; import { useStore } from 'App/mstore'; import { CloseButton } from 'UI'; import stl from './header.module.css'; function Header({ children, className, onClose, onFilterChange, showClose = true, ...props }: { children?: React.ReactNode; className?: string; onFilterChange?: (e: React.ChangeEvent) => void; showClose?: boolean; onClose?: () => void; }) { const { uiPlayerStore } = useStore(); const { closeBottomBlock } = uiPlayerStore; return (
{children}
{showClose && ( )}
); } Header.displayName = 'Header'; export default Header;