import { BookOpen, MapPinned, Receipt, TrendingUp, Truck } from "lucide-react";
import type { StoreModuleIcon as IconKey } from "@/domain/entities/store";

export const STORE_ICONS: IconKey[] = ["sectors", "truck", "trend", "book", "invoice"];

const ICONS: Record<IconKey, React.ComponentType<{ className?: string }>> = {
  sectors: MapPinned,
  truck: Truck,
  trend: TrendingUp,
  book: BookOpen,
  invoice: Receipt,
};

export function StoreModuleIcon({ icon, className }: { icon: string; className?: string }) {
  const Icon = ICONS[icon as IconKey] ?? MapPinned;
  return <Icon className={className} />;
}
