import React, { useState, useRef } from 'react' import { MenuFoldOutlined } from '@ant-design/icons' import { Layout } from 'antd' import Pop from '@/component/pop' import Search from '@/component/search' import { AUTHOR } from '@/constant/global' import Menu from './menu' import styles from './styles/index.module.less' type RefProps = HTMLInputElement & { show: () => void hide: () => void } const { Header } = Layout function HeaderLayout() { const [activeClass, setActiveClass] = useState('') const ref = useRef(null) const showPop = () => { ref.current?.show() } const hidePop = () => { ref.current?.hide() } const handleClassSearch = (activeClass: string) => { setActiveClass(activeClass) } return (
{AUTHOR}
) } export default React.memo(HeaderLayout)