diff --git a/src/components/SysexPreview.tsx b/src/components/SysexPreview.tsx index 14dc538..458882a 100644 --- a/src/components/SysexPreview.tsx +++ b/src/components/SysexPreview.tsx @@ -1,8 +1,9 @@ import { Card } from "primereact/card"; import { Waveform } from "../types"; import { sysexWaveformMessage, toHex } from "../lib/sysex"; -import { Flex } from "./Flex"; import { useMemo } from "react"; +import { Button } from "primereact/button"; +import { PrimeIcons } from "primereact/api"; export const SysexPreview: React.FC<{ waveform: Waveform }> = ({ waveform, @@ -33,16 +34,35 @@ ${sysex[23]} = SYSEX EOF return URL.createObjectURL(blobConfig); }, [waveform]); + const handleDownload = () => { + const fileName = "mGB-patch.syx"; + downloadFile(blobUrl, fileName); + }; + return ( - - -
{output}
-
- - - Download .syx file - - + +