From 3544e238cfd09df95b67d16d24b7ee92e3c5a11e Mon Sep 17 00:00:00 2001 From: Sean Sube Date: Mon, 13 Feb 2023 21:35:12 -0600 Subject: [PATCH] feat(gui): add download button to mask (#135) --- gui/src/components/input/MaskCanvas.tsx | 28 +++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/gui/src/components/input/MaskCanvas.tsx b/gui/src/components/input/MaskCanvas.tsx index 381a1759..2d1a14ef 100644 --- a/gui/src/components/input/MaskCanvas.tsx +++ b/gui/src/components/input/MaskCanvas.tsx @@ -1,5 +1,5 @@ import { doesExist, Maybe, mustExist } from '@apextoaster/js-utils'; -import { FormatColorFill, Gradient, InvertColors, Undo } from '@mui/icons-material'; +import { Download, FormatColorFill, Gradient, InvertColors, Save, Undo } from '@mui/icons-material'; import { Button, Stack, Typography } from '@mui/material'; import { throttle } from 'lodash'; import React, { RefObject, useContext, useEffect, useMemo, useRef } from 'react'; @@ -251,6 +251,27 @@ export function MaskCanvas(props: MaskCanvasProps) { }; return + +