How to use the @botonic/core.isMobile function in @botonic/core

To help you get started, we’ve selected a few @botonic/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hubtype / botonic / packages / botonic-react / src / webchat / webchat.jsx View on Github external
)
  }

  const webchatWebview = () => (
    
      
    
  )
  let mobileStyle = {}
  if (isMobile(webchatState.theme.mobileBreakpoint)) {
    mobileStyle = {
      width: '100%',
      height: '100%',
      right: 0,
      bottom: 0,
      borderRadius: 0,
    }
  }

  return (