about summary refs log tree commit diff
path: root/src/view/com/util/fab/FAB.web.tsx
blob: b9f3a0b07e5c1645e323b9b5ae358f4d82037568 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import {View} from 'react-native'

import {useWebMediaQueries} from '#/lib/hooks/useWebMediaQueries'
import {FABInner, FABProps} from './FABInner'

export const FAB = (_opts: FABProps) => {
  const {isDesktop} = useWebMediaQueries()

  if (!isDesktop) {
    return <FABInner {..._opts} />
  }

  return <View />
}