mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
17 lines
423 B
JavaScript
17 lines
423 B
JavaScript
import React from "react";
|
|
import { Button } from "@chakra-ui/core";
|
|
import { FiChevronLeft } from "react-icons/fi";
|
|
|
|
export default React.forwardRef(({ isSubmitting, onClick }, ref) => (
|
|
<Button
|
|
ref={ref}
|
|
aria-label="Reset Form"
|
|
opacity={isSubmitting ? 1 : 0}
|
|
variant="ghost"
|
|
color="current"
|
|
onClick={onClick}
|
|
>
|
|
<FiChevronLeft size={24} />
|
|
</Button>
|
|
));
|