import dynamic from 'next/dynamic' import { useState } from 'react' import { createPortal } from 'react-dom' const TradingViewChartKline = dynamic(() => import('./TradingViewChartKline'), { ssr: false, }) const TradingViewChartKlineContainer = () => { const [isFullView, setIsFullView] = useState(false) return ( <> {isFullView ? ( createPortal( , document.body ) ) : ( )} ) } export default TradingViewChartKlineContainer