Feature/history toolbar (#44)

Add the history bar
This commit is contained in:
mrdrogdrog 2020-05-21 22:01:23 +02:00 committed by GitHub
parent 4c785b345b
commit d03e000bd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
48 changed files with 681 additions and 303 deletions

View file

@ -1,14 +1,21 @@
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import React from "react";
import "./close-button.scss"
import {Button} from "react-bootstrap";
const CloseButton: React.FC = () => {
export interface CloseButtonProps {
isDark: boolean;
}
const CloseButton: React.FC<CloseButtonProps> = ({isDark}) => {
return (
<FontAwesomeIcon
className="history-close"
icon="times"
/>
<Button variant={isDark ? "secondary" : "light"}>
<FontAwesomeIcon
className="history-close"
icon="times"
/>
</Button>
);
}
export { CloseButton }
export {CloseButton}