'use client'

// React Imports
import { useEffect, type ReactNode } from 'react'

// Hook Imports
import { useSensorHub } from '@/hooks/useSensorHub'
import { Box } from '@mui/material'
import SensorHubView from '@/views/sensorHub'
interface SensorHubProps {
  children: ReactNode
}

export default function SensorHub({ children }: SensorHubProps) {
  const { hasSensorHub } = useSensorHub()


  return <> {children}
   {!hasSensorHub && <SensorHubView />}</>
}
