Files
sign/apps/web/src/components/(dashboard)/layout/desktop-nav.tsx

29 lines
828 B
TypeScript
Raw Normal View History

2023-06-09 18:21:18 +10:00
'use client';
import { HTMLAttributes } from 'react';
import { cn } from '@documenso/ui/lib/utils';
export type DesktopNavProps = HTMLAttributes<HTMLDivElement>;
export const DesktopNav = ({ className, ...props }: DesktopNavProps) => {
2023-08-29 17:26:19 +10:00
// const pathname = usePathname();
2023-08-07 23:10:27 +10:00
2023-06-09 18:21:18 +10:00
return (
<div className={cn('ml-8 hidden flex-1 gap-x-6 md:flex', className)} {...props}>
2023-08-29 17:26:19 +10:00
{/* We have no other subpaths rn */}
{/* <Link
2023-06-09 18:21:18 +10:00
href="/documents"
2023-06-11 01:50:19 -04:00
className={cn(
'text-muted-foreground focus-visible:ring-ring ring-offset-background rounded-md font-medium leading-5 hover:opacity-80 focus-visible:outline-none focus-visible:ring-2',
2023-06-11 01:50:19 -04:00
{
'text-foreground': pathname?.startsWith('/documents'),
},
)}
2023-06-09 18:21:18 +10:00
>
Documents
2023-08-29 17:26:19 +10:00
</Link> */}
2023-06-09 18:21:18 +10:00
</div>
);
};