import { Col, Drawer, Row } from "antd"; import { IOView } from "../types"; import { ReactElement, useRef } from "react"; import { Spin } from "./Spin"; import { useAppState } from "../overmind"; import Title from "../Pages/Explore/Title"; type LayedOutContent = { header?: ReactElement | string | undefined; info?: ReactElement; isWorking?: boolean; isDomainPresale?: boolean; customClass?: string; isPost?: boolean; isMood?: boolean; isVote?: boolean; position?: "top"; }; const ContentLayoutHorizontal: React.FunctionComponent> = ({ header, info, children, isWorking, }) => ( <>

{header}

{info} {children} {isWorking ? : ""} ); const ContentLayoutVertical: React.FunctionComponent> = ({ header, info, children, isWorking, }) => { const state = useAppState(); return (
{info}

{header}

{children}
{/* {(isWorking !== undefined) && state.indicators.isWorking ? : ""} */}
); }; const ContentLayoutHorizontal3col: React.FunctionComponent> = ({ header, info, children, isWorking, customClass = "", position = "", isPost, isMood, isVote, }) => { const state = useAppState(); let customPosition = ""; switch (position) { case "top": customPosition = "app-content-align-vertically-top"; break; default: customPosition = "app-content-align-vertically"; break; } const layoutWrapperClassName = "app-main-full-width app-content-layout"; // return
//
{info}
//

{header}

//
{childlgren}
// {/* {(isWorking !== undefined) && state.indicators.isWorking ? : ""} */} //
; if (isWorking) return ; // const spanSum = (header ? 4 : 0) + (info ? 4 : 0); // const mainSpan = 24 - spanSum const extrasSpan = (header ? 4 : 0) + (info ? 4 : 0); return ( {header && ( {header} )}
{children}
{info ? (
{info}
) : ( "" )}
); }; export const ContentLayoutDeepLike: IOView<{ children: React.ReactChild; containerDeeplike: React.MutableRefObject }> = ({ children, containerDeeplike, }) => { return ( {children}   ); }; export const ContentLayout = ContentLayoutHorizontal3col;