import { useParams, usePathname, useRouter } from "next/navigation"; import { WORKSPACE_SETTINGS_LINKS } from "@/constants/workspace"; const MobileWorkspaceSettingsTabs = () => { const router = useRouter(); const { workspaceSlug } = useParams(); const pathname = usePathname(); return (
{WORKSPACE_SETTINGS_LINKS.map((item, index) => (
router.push(`/${workspaceSlug}${item.href}`)} > {item.label}
))}
); }; export default MobileWorkspaceSettingsTabs;