teableio/teable

View on GitHub
packages/sdk/src/components/view/constant.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ViewType } from '@teable/core';
import { Sheet, ClipboardList as Form, Kanban, Component } from '@teable/icons';

export const VIEW_ICON_MAP: Record<ViewType, React.ComponentType<React.SVGProps<SVGSVGElement>>> = {
  [ViewType.Grid]: Sheet,
  [ViewType.Gantt]: Sheet,
  [ViewType.Kanban]: Kanban,
  [ViewType.Gallery]: Sheet,
  [ViewType.Calendar]: Sheet,
  [ViewType.Form]: Form,
  [ViewType.Plugin]: Component,
};