import {
  type BlockCategory,
  type BlockCategoryMeta,
  BLOCK_CATEGORIES,
  resolveBlockCategory,
} from "@hyperframes/core/registry";

export type { BlockCategory, BlockCategoryMeta };
export { BLOCK_CATEGORIES, resolveBlockCategory };

const COLOR_MAP: Record<BlockCategory, { bg: string; text: string; dot: string }> = {
  transitions: { bg: "bg-blue-500/15", text: "text-blue-400", dot: "bg-blue-400" },
  vfx: { bg: "bg-purple-500/15", text: "text-purple-400", dot: "bg-purple-400" },
  social: { bg: "bg-pink-500/15", text: "text-pink-400", dot: "bg-pink-400" },
  data: { bg: "bg-green-500/15", text: "text-green-400", dot: "bg-green-400" },
  scenes: { bg: "bg-amber-500/15", text: "text-amber-400", dot: "bg-amber-400" },
  captions: { bg: "bg-cyan-500/15", text: "text-cyan-400", dot: "bg-cyan-400" },
  effects: { bg: "bg-rose-500/15", text: "text-rose-400", dot: "bg-rose-400" },
};

export function getCategoryColors(category: BlockCategory) {
  return COLOR_MAP[category];
}
