1
0
mirror of https://github.com/checktheroads/hyperglass synced 2024-05-11 05:55:08 +00:00

Refactor React components & update deps

This commit is contained in:
checktheroads
2020-07-05 17:20:10 -07:00
parent 6ea8dfe975
commit 79c271b0ce
56 changed files with 1231 additions and 1272 deletions

View File

@@ -0,0 +1,30 @@
import * as React from "react";
import { forwardRef } from "react";
import { Box, Collapse } from "@chakra-ui/core";
import MarkDown from "~/components/MarkDown";
const FooterContent = forwardRef(
({ isOpen = false, content, side = "left", title, ...props }, ref) => {
return (
<Collapse
px={6}
py={4}
w="auto"
ref={ref}
borderBottom="1px"
display="flex"
maxWidth="100%"
isOpen={isOpen}
flexBasis="auto"
justifyContent={side === "left" ? "flex-start" : "flex-end"}
{...props}
>
<Box textAlign={side}>
<MarkDown content={content} />
</Box>
</Collapse>
);
}
);
export default FooterContent;