1
0
Fork 1
mirror of https://github.com/thatmattlove/hyperglass.git synced 2026-04-19 06:18:27 +00:00
thatmattlove-hyperglass/hyperglass/ui/components/Footer/FooterContent.js

28 lines
717 B
JavaScript

import * as React from "react";
import { forwardRef } from "react";
import { Box, Collapse } from "@chakra-ui/core";
import { Markdown } from "app/components/Markdown";
export 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>
);
}
);