///todo deleted
// import 'package:flutter/material.dart';
// import 'package:provider/provider.dart';
// import 'package:test_sa/controllers/providers/api/status_drop_down/pentry/pentry_task_status_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/lookup.dart';
// import 'package:test_sa/views/widgets/loaders/loading_manager.dart';
// import 'package:test_sa/views/widgets/status/single_status_menu.dart';
//
// class PentryTaskStatusMenu extends StatelessWidget {
//   final Function(Lookup) onSelect;
//   final Lookup initialValue;
//
//   const PentryTaskStatusMenu({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<PentryTaskStatusProvider>(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: SingleStatusMenu(
//           initialStatus: initialValue,
//           statuses: menuProvider.items,
//           onSelect: onSelect,
//         ));
//   }
// }
