mirrored_repositories/public-apis-mobile-client/lib/app/modules/controllers/category_box_controller
import 'package:flutter/material.dart';
import 'package:public_apis_desktop_client/app/modules/controllers/category_box_controller/category_box_controller.dart';
import 'package:public_apis_desktop_client/app/modules/controllers/category_box_controller/extensions/add_category_apis_to_bookmarks.dart';
import 'package:public_apis_desktop_client/app/modules/controllers/category_box_controller/extensions/copyCategoryTitle.dart';
import 'package:public_apis_desktop_client/app/modules/controllers/category_box_controller/extensions/hide_category.dart';
import 'package:public_apis_desktop_client/app/modules/controllers/category_box_controller/extensions/share_category.dart';

import '../../../../data/models/category_box_option.dart';

extension HiddenCategoryOptionsExtension on CategoryBoxController {
  List<CategoryBoxOption> get hiddenCategoryOptions {
    final category = CategoryBoxController.currentCategoryData!.title;

    return <CategoryBoxOption>[
      CategoryBoxOption.copy(onTap: copyCategoryTitle),
      CategoryBoxOption.bookmarkAllApis(
        onTap: addAllApisToBookmarks,
        category: category,
      ),
      CategoryBoxOption.removeAllCategoryApis(
        onTap: removeAllApisFromBookmarks,
        category: category,
      ),
      CategoryBoxOption.showCategory(onTap: showCategory),
      CategoryBoxOption.share(onTap: shareCategory),
    ];
  }
}
