import 'package:flutter/cupertino.dart';

class CupertinoIconHelper {
  static const Map<
    String,
    IconData
  >
  _iconMap = {
    'add': CupertinoIcons.add,
    'add_circled': CupertinoIcons.add_circled,
    'bell': CupertinoIcons.bell,
    'bell_fill': CupertinoIcons.bell_fill,
    'camera': CupertinoIcons.camera,
    'camera_fill': CupertinoIcons.camera_fill,
    'car': CupertinoIcons.car,
    'house': CupertinoIcons.house,
    'house_fill': CupertinoIcons.house_fill,
    'leaf': CupertinoIcons.leaf_arrow_circlepath,
    'person': CupertinoIcons.person,
    'person_fill': CupertinoIcons.person_fill,
    'search': CupertinoIcons.search,
    'sportscourt': CupertinoIcons.sportscourt,
    'sportscourt_fill': CupertinoIcons.sportscourt_fill,
    'wrench': CupertinoIcons.wrench,
    'wrench_fill': CupertinoIcons.wrench_fill,
    'square_grid_2x2': CupertinoIcons.square_grid_2x2,
    'square_grid_2x2_fill': CupertinoIcons.square_grid_2x2_fill,
    'desktopcomputer': CupertinoIcons.desktopcomputer,
    'tree': CupertinoIcons.tree,
    // extend with more CupertinoIcons as needed
  };

  static IconData fromString(
    String key,
  ) {
    return _iconMap[key] ??
        CupertinoIcons.question; // 👈 default fallback
  }
}
