// MasterData.jsx — Machinery master data: Machines + Categories tabs.
// (Customers → Customer page · Operators/Riggers → Employees page.)
// Admin: full CRUD. Other roles: view-only.
function MasterDataPage({ role }) {
const [tab, setTab] = React.useState('machines');
const [adding, setAdding] = React.useState(false);
const isAdmin = role === 'Admin';
return (
Machinery — the fleet master: every crane, its plate, category and live availability. {isAdmin ? 'You can add, edit and remove records.' : 'View-only — only Admin can edit master data.'}