import React from "react";
import {
Button,
ColorModeProvider,
CSSReset,
Flex,
Heading,
Spinner,
ThemeProvider,
useTheme,
useColorMode
} from "@chakra-ui/core";
import { defaultTheme } from "~/theme";
const PreConfig = ({ loading, error, refresh }) => {
const theme = useTheme();
const { colorMode } = useColorMode();
const bg = { light: theme.colors.white, dark: theme.colors.dark };
const color = { light: theme.colors.dark, dark: theme.colors.white };
return (
{loading && }
{!loading && error && (
<>
{error.response?.data?.output || error.message || "An Error Occurred"}
>
)}
);
};
export default ({ loading, error, refresh }) => {
return (
);
};