import {
  BookOpen,
  Briefcase,
  Scale,
  Shield,
  Tag,
  Users,
} from 'lucide-react';
import type { LucideIcon } from 'lucide-react';

import type { PolicyCategory } from '@/business/policies/types';

const categoryIcons: Record<PolicyCategory, LucideIcon> = {
  Behavior: Shield,
  Operations: Briefcase,
  Communication: Users,
  Safety: Shield,
  'Professional Growth': BookOpen,
  Legal: Scale,
};

interface PolicyCategoryIconProps {
  readonly category: PolicyCategory;
}

export function PolicyCategoryIcon({ category }: PolicyCategoryIconProps) {
  const Icon = categoryIcons[category] ?? Tag;
  return <Icon size={16} />;
}
