import { View, Text } from "@tarojs/components"
import { FC, memo, PropsWithChildren } from "react"
const PageLoader = memo(() => {
return (
Loading...
)
})
interface LayoutProps {
loadding?: boolean
}
interface LayoutComponent extends FC> {
Header: FC,
Footer: FC,
Container: FC,
}
const LayoutBase = ({ children, loadding = true }: PropsWithChildren) => {
if (loadding){
return (
);
}
return (
{children}
)
}
const Layout = LayoutBase as unknown as LayoutComponent
export default Layout;