Add command palette & cleanup

This commit is contained in:
Sacha Weatherstone
2022-10-08 16:44:07 +10:30
parent 9e331de44e
commit beba475864
19 changed files with 552 additions and 94 deletions
+21
View File
@@ -0,0 +1,21 @@
import type React from "react";
import { useDevice } from "@app/core/providers/useDevice.js";
import { QRDialog } from "./QRDialog.js";
export const DialogManager = (): JSX.Element => {
const { channels, config, QRDialogOpen, setQRDialogOpen } = useDevice();
return (
<>
<QRDialog
isOpen={QRDialogOpen}
close={() => {
setQRDialogOpen(false);
}}
channels={channels.map((ch) => ch.config)}
loraConfig={config.lora}
/>
</>
);
};