remove menusidebarview

This commit is contained in:
karl 2025-03-28 11:50:09 -04:00
parent 9a8d4ab1cc
commit 346ad099af
3 changed files with 37 additions and 37 deletions

View File

@ -1,38 +1,38 @@
import Link from 'next/link' // import Link from 'next/link'
import s from './MenuSidebarView.module.css' // import s from './MenuSidebarView.module.css'
import { useUI } from '@components/ui/context' // import { useUI } from '@components/ui/context'
import SidebarLayout from '@components/common/SidebarLayout' // import SidebarLayout from '@components/common/SidebarLayout'
import type { Link as LinkProps } from './index' // import type { Link as LinkProps } from './index'
export default function MenuSidebarView({ // export default function MenuSidebarView({
links = [], // links = [],
}: { // }: {
links?: LinkProps[] // links?: LinkProps[]
}) { // }) {
const { closeSidebar } = useUI() // const { closeSidebar } = useUI()
return ( // return (
<SidebarLayout handleClose={() => closeSidebar()}> // <SidebarLayout handleClose={() => closeSidebar()}>
<div className={s.root}> // <div className={s.root}>
<nav> // <nav>
<ul> // <ul>
<li className={s.item} onClick={() => closeSidebar()}> // <li className={s.item} onClick={() => closeSidebar()}>
<Link href="/search">All</Link> // <Link href="/search">All</Link>
</li> // </li>
{links.map((l: any) => ( // {links.map((l: any) => (
<li // <li
key={l.href} // key={l.href}
className={s.item} // className={s.item}
onClick={() => closeSidebar()} // onClick={() => closeSidebar()}
> // >
<Link href={l.href}>{l.label}</Link> // <Link href={l.href}>{l.label}</Link>
</li> // </li>
))} // ))}
</ul> // </ul>
</nav> // </nav>
</div> // </div>
</SidebarLayout> // </SidebarLayout>
) // )
} // }
MenuSidebarView // MenuSidebarView

View File

@ -1,4 +1,4 @@
export { default } from './MenuSidebarView' // export { default } from './MenuSidebarView'
export interface Link { export interface Link {
href: string href: string
label: string label: string

View File

@ -1,3 +1,3 @@
// export { default } from './UserNav' // export { default } from './UserNav'
export { default as MenuSidebarView } from './MenuSidebarView' // export { default as MenuSidebarView } from './MenuSidebarView'
// export { default as CustomerMenuContent } from './CustomerMenuContent' // export { default as CustomerMenuContent } from './CustomerMenuContent'