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