import 'package:comwell_key_app/.generated/assets/assets.gen.dart';
import 'package:comwell_key_app/utils/l10n_utils.dart';
import 'package:flutter/material.dart';

enum HouseKeepingService {
  cleaning,
  towels,
  refill,
  trash,
  soap;

  String titleStringId(BuildContext context) {
    switch (this) {
      case HouseKeepingService.cleaning:
        return context.strings.housekeeping_page_service_title_cleaning;
      case HouseKeepingService.towels:
        return context.strings.housekeeping_page_service_title_towels;
      case HouseKeepingService.refill:
        return context.strings.housekeeping_page_service_title_refill;
      case HouseKeepingService.trash:
        return context.strings.housekeeping_page_service_title_trash;
      case HouseKeepingService.soap:
        return context.strings.housekeeping_page_service_title_soap;
    }
  }

  String get assetId {
    switch (this) {
      case HouseKeepingService.cleaning:
        return Assets.icons.iconHousekeepingCleaning.path;
      case HouseKeepingService.towels:
        return Assets.icons.iconHousekeepingTowels.path;
      case HouseKeepingService.refill:
        return Assets.icons.iconHousekeepingCoffee.path;
      case HouseKeepingService.trash:
        return Assets.icons.iconHousekeepingTrash.path;
      case HouseKeepingService.soap:
        return Assets.icons.iconHousekeepingSoap.path;
    }
  }

  String subtitleStringId(BuildContext context) {
    switch (this) {
      case HouseKeepingService.cleaning:
        return context.strings.housekeeping_page_service_cleaning_subtitle;
      case HouseKeepingService.towels:
      case HouseKeepingService.refill:
      case HouseKeepingService.trash:
      case HouseKeepingService.soap:
        return "";
    }
  }
}