import { Worktype } from "api";
import { OptionItem } from "./types";

export interface WorktypeState {
  apps: Apps;
  domain: Domain;
}

export interface Apps {
  isLoading: boolean;
  isAddLoading: boolean;
  isEditLoading: boolean;
  isOptionItemsLoading: boolean;
  selectedId: number;
  worktypeId: string;
  description?: string;
  optionItems?: OptionItem[];
  activeWorktypeId?: number | undefined;
}

export interface Domain {
  worktypes?: Worktype[];
}
