import { HassContext } from "../../contexts"; import { FunctionalComponent } from "preact"; import { HassContextValues } from "../../types"; import Loading from "../Loading"; import Threedy from "../Threedy"; const Root: FunctionalComponent = ({ hass, card, config, }) => { const loaded = hass !== undefined && card !== undefined && config !== undefined; return ( {/* @ts-ignore */} {loaded ? : } {/* @ts-ignore */} ); }; export default Root;