import React from 'react'; import { Link } from 'react-router-dom'; import { ChevronLeftIcon } from '@heroicons/react/24/outline'; import { menuForRole } from '../components/layout/SettingsLayout'; import { useAuthStore } from '../stores/authStore'; import { usePermissions } from '../hooks/usePermissions'; /** * SettingsMenuPage — the settings landing list for doctor/clinic users. * A full-width tappable list of the settings sections available to the current * role (mobile-first, matches the Figma mobile design). Each section links to * its route; on desktop the same sections render the shell via SettingsLayout. */ export default function SettingsMenuPage() { const primaryRole = useAuthStore((s) => s.primaryRole); const scope = useAuthStore((s) => s.context?.scope); const { can } = usePermissions(); const items = menuForRole(primaryRole, can, scope); return (