import React , { useRef } from 'react' ; import { IDashboard , useDimensions } from '@kobsio/plugin-core' ; import Dashboard from './Dashboard' ; interface IDashboardWrapperProps { dashboard : IDashboard ; setDetails ? : ( details : React . ReactNode ) => void ; } const DashboardWrapper = ( { dashboard , setDetails , } ) => { const refWrapper = useRef < HTMLDivElement > ( null ) ; const tabsSize = useDimensions ( refWrapper ) ; return ( < div ref = { refWrapper } > < Dashboard activeKey = "" eventKey = "" dashboard = { dashboard } forceDefaultSpan = { tabsSize . width < 1200 } setDetails = { setDetails } / > < /div>); } ; export default DashboardWrapper ;