kodadot/nft-gallery

View on GitHub
composables/useHasRoute.ts

Summary

Maintainability
A
0 mins
Test Coverage
export default () => {
  const route = useRoute()

  const hasItems = computed(() =>
    ['prefix-explore-items', 'prefix-collection-id'].includes(
      route.name?.toString() ?? '',
    ),
  )

  return { hasItems }
}