import React from "react";
import { Button, Flex, Heading, Image, Stack, useColorMode } from "@chakra-ui/core";
const TitleOnly = ({ text }) => (
{text}
);
const SubtitleOnly = ({ text }) => (
{text}
);
const TextOnly = ({ text }) => (
);
const LogoOnly = ({ text, logo }) => {
const { colorMode } = useColorMode();
const logoColor = { light: logo.dark, dark: logo.light };
const logoPath = logoColor[colorMode];
return (
);
};
const LogoTitle = ({ text, logo }) => (
<>
>
);
const All = ({ text, logo }) => (
<>
>
);
const modeMap = { text_only: TextOnly, logo_only: LogoOnly, logo_title: LogoTitle, all: All };
export default React.forwardRef(({ text, logo, resetForm }, ref) => {
const MatchedMode = modeMap[text.title_mode];
return (
);
});