|
|
|
@ -5,11 +5,12 @@ import useResponsiveWidth from "@/hooks/useResponsiveWidth";
|
|
|
|
|
import NavigationDrawer from "./NavigationDrawer";
|
|
|
|
|
|
|
|
|
|
interface Props {
|
|
|
|
|
className?: string;
|
|
|
|
|
children?: React.ReactNode;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const MobileHeader = (props: Props) => {
|
|
|
|
|
const { children } = props;
|
|
|
|
|
const { className, children } = props;
|
|
|
|
|
const { sm } = useResponsiveWidth();
|
|
|
|
|
const [titleText] = useState("Memos");
|
|
|
|
|
const { y: offsetTop } = useWindowScroll();
|
|
|
|
@ -18,7 +19,8 @@ const MobileHeader = (props: Props) => {
|
|
|
|
|
<div
|
|
|
|
|
className={classNames(
|
|
|
|
|
"sticky top-0 pt-3 pb-2 sm:pt-2 px-4 sm:px-6 sm:mb-1 bg-zinc-100 dark:bg-zinc-900 bg-opacity-80 backdrop-blur-lg flex md:hidden flex-row justify-between items-center w-full h-auto flex-nowrap shrink-0 z-1",
|
|
|
|
|
offsetTop > 0 && "shadow-md"
|
|
|
|
|
offsetTop > 0 && "shadow-md",
|
|
|
|
|
className
|
|
|
|
|
)}
|
|
|
|
|
>
|
|
|
|
|
<div className="flex flex-row justify-start items-center mr-2 shrink-0 overflow-hidden">
|
|
|
|
|