///todo deleted
// import 'package:flutter/material.dart';
// import 'package:provider/provider.dart';
// import 'package:test_sa/controllers/providers/api/status_drop_down/employee/engineers_provider.dart';
// import 'package:test_sa/controllers/providers/api/user_provider.dart';
// import 'package:test_sa/controllers/providers/settings/setting_provider.dart';
// import 'package:test_sa/models/employee.dart';
// import 'package:test_sa/views/widgets/loaders/loading_manager.dart';
// import 'package:test_sa/views/widgets/status/employee/single_type_menu.dart';
//
// class EngineersMenu extends StatelessWidget {
//   final Function(Employee) onSelect;
//   final Employee initialValue;
//
//   const EngineersMenu({Key? key, this.onSelect, this.initialValue}) : super(key: key);
//
//   @override
//   Widget build(BuildContext context) {
//     final settingProvider = Provider.of<SettingProvider>(context);
//     final userProvider = Provider.of<UserProvider>(context);
//     final menuProvider = Provider.of<EngineersProvider>(context);
//     return LoadingManager(
//         isLoading: menuProvider.isLoading,
//         isFailedLoading: menuProvider.items == null,
//         stateCode: menuProvider.stateCode,
//         onRefresh: () async {
//           menuProvider.reset();
//           await menuProvider.getData(user: userProvider.user, host: settingProvider.host);
//         },
//         child: SingleEngineerMenu(
//           initialStatus: initialValue,
//           engineers: menuProvider.items,
//           onSelect: onSelect,
//         ));
//   }
// }
