about summary refs log tree commit diff
path: root/src/view/com/util/fab/FAB.web.tsx
blob: 601d505a8da574272c91d89319e3548801eb2020 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import React from 'react'
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 />
}