import React from 'react'; import { Link } from 'react-router-dom'; import { ChevronLeftIcon } from '@heroicons/react/24/outline'; import { SETTINGS_MENU } from '../components/layout/SettingsLayout'; /** * SettingsMenuPage — the settings landing list for doctor/clinic users. * A full-width tappable list of settings sections (mobile-first, matches the * Figma mobile design). Implemented sections link to their route; the rest * render as disabled rows labelled "به‌زودی". On desktop the same list is shown; * each section itself renders the desktop shell via SettingsLayout. */ export default function SettingsMenuPage() { return (

تنظیمات

{SETTINGS_MENU.map((item, idx) => { const Icon = item.icon; const disabled = !item.to; const rowStyle: React.CSSProperties = { display: 'flex', alignItems: 'center', gap: 12, padding: '16px 18px', fontSize: 15, fontFamily: 'inherit', borderTop: idx === 0 ? 'none' : '1px solid var(--border)', color: disabled ? 'var(--text-3)' : 'var(--text)', cursor: disabled ? 'not-allowed' : 'pointer', background: 'transparent', width: '100%', textAlign: 'right', }; const inner = ( <> {item.label} {disabled ? به‌زودی : } ); return disabled ? ( ) : ( { (e.currentTarget as HTMLElement).style.background = 'var(--surface-2)'; }} onMouseLeave={(e) => { (e.currentTarget as HTMLElement).style.background = 'transparent'; }} > {inner} ); })}
); }