kodadot/nft-gallery

View on GitHub
utils/prefix.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { dotHubDenyList, ksmHubDenyList } from '@/utils/constants'

export function getDenyList(prefix: string): string[] | undefined {
  switch (prefix) {
    case 'ahk':
      return ksmHubDenyList
    case 'ahp':
      return dotHubDenyList
    default:
      return undefined
  }
}

export const hasMarketplace = (prefix: string): boolean =>
  ['ahp', 'ahk'].includes(prefix)

export const hasOperationsDisabled = (_: string): boolean => false