import React, { useMemo } from "react" import { useAppState } from "../../001_provider/001_AppStateProvider" import { Protocol } from "@dannadori/voice-changer-client-js" export const ProtocolRow = () => { const appState = useAppState() const advancedSetting = appState.appGuiSettingState.appGuiSetting.front.advancedSetting const protocolRow = useMemo(() => { if (!advancedSetting.protocolEnable) { return <>> } const onProtocolChanged = async (val: Protocol) => { appState.workletNodeSetting.updateWorkletNodeSetting({ ...appState.workletNodeSetting.workletNodeSetting, protocol: val }) } return (