import Link from 'next/link' import { usePathname } from 'next/navigation' import { PropsWithChildren } from 'react' import { Button, cn } from 'ui' import { ScaffoldContainerLegacy } from '../Scaffold' export const AccountSettingsLayout = ({ children }: PropsWithChildren) => { const pathname = usePathname() const links = [ { isActive: pathname === `/account/me`, label: 'Preferences', href: `/account/me`, key: `/account/me`, }, { isActive: pathname === `/account/tokens`, label: 'Access Tokens', href: `/account/tokens`, key: `/account/tokens`, }, { isActive: pathname === `/account/security`, label: 'Security', href: `/account/security`, key: `/account/security`, }, ] return (
{children}
) }