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

19 lines
435 B
JavaScript
Raw Normal View History

import * as React from "react";
2020-01-20 00:37:04 -07:00
import { Button } from "@chakra-ui/core";
import { FiChevronLeft } from "@meronex/icons/fi";
2020-01-17 02:50:57 -07:00
export const ResetButton = React.forwardRef(
({ isSubmitting, onClick }, ref) => (
<Button
ref={ref}
color="current"
variant="ghost"
onClick={onClick}
aria-label="Reset Form"
opacity={isSubmitting ? 1 : 0}
>
<FiChevronLeft size={24} />
</Button>
)
);