// Customer.jsx — Master Data › Customer. Customer directory + negotiated // price list (moved here from Account & Finance). Admin: full CRUD. function CustomerPage({ role }) { const [tab, setTab] = React.useState('directory'); const isAdmin = role === 'Admin'; return (
Customer — master customer directory and each account's negotiated day-rates. {isAdmin ? 'You can add, edit and remove records.' : 'View-only — only Admin can edit customer master data.'}
{tab === 'directory' ? (

Customers

Master customer list — only Admin can add or edit
{isAdmin ? : Admin only}
{CUSTOMERS.map(c => ( ))}
IDCustomerEmailContactsLocationsJobs
{c.id} {c.name} {c.email} {c.contacts.map(ct => (
{ct.name} · {ct.phone}
))}
{c.locations.map(l =>
{l}
)}
{c.jobs} {isAdmin ? : null}
) : null} {tab === 'pricelist' ? : null}
); } Object.assign(window, { CustomerPage });