Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

487 B
Raw Blame
import {
  Calendar,
  Hash,
  List,
  type LucideIcon,
  SquareCheck,
  SquareChevronDown,
  Type,
} from "lucide-react";
import type { CustomFieldType } from "@/components/project/custom-fields/types";

const ICONS: Record<CustomFieldType, LucideIcon> = {
  text: Type,
  number: Hash,
  date: Calendar,
  dropdown: SquareChevronDown,
  boolean: SquareCheck,
  multiselect: List,
};

export function customFieldIcon(type: CustomFieldType): LucideIcon {
  return ICONS[type] ?? Type;
}