export interface UserState {
  superAdmin: boolean
  userId: string
  username: string
  nickname: string
  avatar: string
  permissions: string[]
  routers: MenuOptions[]
  routeName: string
}

export interface MenuOptions {
  path: string
  name: string
  component?: string | (() => Promise<unknown>)
  redirect?: string
  meta: MetaProps
  children?: MenuOptions[]
}

export interface MetaProps {
  icon: string
  title: string
  activeMenu?: string
  isLink?: string
  isHide?: boolean
  isFull?: boolean
  isAffix?: boolean
  isKeepAlive?: boolean
}
