export enum CreateState {
  CREATE,
  FINISH
}

export type RyeShopifyStore = {
  domain: string
  name: string
  order?: number
  connected?: boolean
}

export type RyeShopifyState = {
  error?: string | null
  loading: boolean
  trigger?: boolean
  stores: RyeShopifyStore[]
}

export enum RYE_PRODUCT_TYPES {
  COLLECTION = 1,
  INDIVIDUAL = 2
}

export type RyeModalStep = {
  title?: string | React.ReactNode
  content: any
  footer: any | null
}

export enum RYE_MODAL_STEPS {
  LOADING = 'LOADING',
  SELECT_MODULE_TYPE = 'SELECT_MODULE_TYPE',
  ADD_PRODUCT = 'ADD_PRODUCT',
  ADD_MORE_PRODUCT = 'ADD_MORE_PRODUCT',
  ADD_COLLECTION = 'ADD_COLLECTION',
  EMPTY = 'EMPTY',
  LOGIN = 'LOGIN',
  LOGIN_SUCCESS = 'LOGIN_SUCCESS',
  ADD_STORE_SUCCESS = 'ADD_STORE_SUCCESS',
  // DOMAIN_INPUT = "DOMAIN_INPUT", // has its own component
  CREATE_ACCOUNT = 'CREATE_ACCOUNT'
}

export type RyeStepMap = {
  [key in RYE_MODAL_STEPS]?: RyeModalStep
}
