kodadot/nft-gallery

View on GitHub
composables/useViewport.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { useWindowSize } from '@vueuse/core'

export default function () {
  const isMobile = computed(() => useWindowSize().width.value <= 768)

  return { isMobile }
}