import React from "react";
import {
Box,
useColorMode,
Heading,
HStack,
Text,
Icon,
Pressable,
ArrowBackIcon,
Link,
useColorModeValue,
} from "native-base";
import { Floaters } from "../components/Floaters";
import { useSafeAreaInsets } from "react-native-safe-area-context";
import { EvilIcons } from "@native-base/icons";
export const Layout = ({
children,
navigation,
title,
doclink,
navigateTo,
_status,
_hStack,
...props
}: any) => {
const { colorMode, toggleColorMode } = useColorMode();
const safeArea = useSafeAreaInsets();
return (
<>
{
navigation && navigation.navigate(navigateTo);
}}
_web={{
cursor: "pointer",
}}
>
{title && (
)}
{title ? title : "NativeBase"}
{title && (
Docs
}
_light={{
color: "black",
}}
_dark={{
color: "white",
}}
fontWeight={800}
size="8"
/>
)}
{children}
>
);
};