import { InfoOutlineIcon } from '@chakra-ui/icons'; import { Tooltip, VStack, Text, Flex } from '@chakra-ui/react'; import { workerClientBus } from './decrypt-worker/client.ts'; import { DECRYPTION_WORKER_ACTION_NAME } from './decrypt-worker/constants'; import usePromise from 'react-promise-suspense'; const getSDKVersion = async (): Promise => { return workerClientBus.request(DECRYPTION_WORKER_ACTION_NAME.VERSION, null); }; export function SDKVersion() { const sdkVersion = usePromise(getSDKVersion, []); return ( App: __APP_VERSION__ SDK: {sdkVersion} } bg="gray.300" color="black" > ); }