feat: add side menu

This commit is contained in:
Mahyar Khanbolooki
2025-07-04 15:49:38 +03:30
parent 691dc7c100
commit 424373bc3f
25 changed files with 758 additions and 11 deletions
+20
View File
@@ -0,0 +1,20 @@
import Link, { LinkProps } from 'next/link'
import React from 'react'
type Props = {
icon: React.ReactElement
title: string
} & LinkProps & React.AnchorHTMLAttributes<HTMLAnchorElement>
export default function MenuItem({ href, title, icon, className, ...restProps }: Props) {
return (
<Link
{...restProps}
href={href}
className={`inline-flex gap-2 px-9 border-s-6 border-transparent text-disabled-text text-xs items-center font-light text-nowrap overflow-hidden h-6
data-[active]:border-s-6 data-[active]:border-black data-[active]:text-black ${className}`}>
{icon}
<div>{title}</div>
</Link>
)
}