import type {
  CommunityAgeGroup,
  CommunityCategory,
  CommunityPartnershipFilter,
  CommunityPartnershipType,
} from '@/shared/types/community';

export type CommunityCategoryIconKey =
  | 'utensils'
  | 'heart'
  | 'users'
  | 'bookOpen'
  | 'building'
  | 'tree'
  | 'star'
  | 'paintbrush'
  | 'handshake';

export const COMMUNITY_PARTNERSHIP_FILTERS: readonly CommunityPartnershipFilter[] = [
  'all',
  'community-service',
  'school-partnership',
  'both',
];

export const COMMUNITY_AGE_GROUPS: readonly CommunityAgeGroup[] = ['K-2', '3-5', '6-8'];

export const COMMUNITY_PARTNERSHIP_TYPE_CLASSES: Readonly<Record<CommunityPartnershipType, string>> = {
  'community-service': 'bg-emerald-500/15 text-emerald-400 border-emerald-500/30',
  'school-partnership': 'bg-blue-500/15 text-blue-400 border-blue-500/30',
  both: 'bg-violet-500/15 text-violet-400 border-violet-500/30',
};

export const COMMUNITY_PARTNERSHIP_TYPE_LABELS: Readonly<Record<CommunityPartnershipType, string>> = {
  'community-service': 'Community Service',
  'school-partnership': 'School Partnership',
  both: 'Service & Partnership',
};

export const COMMUNITY_CATEGORY_ICON_KEYS: Readonly<Record<CommunityCategory, CommunityCategoryIconKey>> = {
  'Food & Nutrition': 'utensils',
  'Animal Welfare': 'heart',
  'Senior Services': 'users',
  'Education & Literacy': 'bookOpen',
  'Housing & Construction': 'building',
  'Environment & Nature': 'tree',
  'Sports & Recreation': 'star',
  'Arts & Culture': 'paintbrush',
  'Family Support': 'handshake',
};
