diff --git a/src/Core.js b/src/Core.js index 009ceea..d656a3b 100644 --- a/src/Core.js +++ b/src/Core.js @@ -1,12 +1,15 @@ import React from "react"; import { useSelector, useDispatch } from "react-redux"; -import { Box, Button, Clock } from "grommet"; +import { Box, Button, Clock, Text } from "grommet"; import { setPlugin, selectCore } from "./coreSlice"; +import { selectVoice } from "./voiceSlice"; +import VoiceBars from "./components/VoiceBars"; import plugins from "./plugins"; function Core() { const coreState = useSelector(selectCore); + const voiceState = useSelector(selectVoice); const dispatch = useDispatch(); const plugin = plugins[coreState.plugin]; const props = { @@ -15,6 +18,12 @@ function Core() { }; const dummyButtons = ["Maps", "Home Devices", "Phone"]; return <> + + {voiceState.recording ? : + voiceState.text === null ? null: + {voiceState.text} + } + {plugin ? React.createElement(plugin, props, null) : ( - + :