'use client'
import '@dynamic-labs-sdk/client/core';
import '@dynamic-labs/sdk-api-core';
import '../../../client/client.js';
import 'react';
import '@dynamic-labs-sdk/client';
import '../../../config/ApiEndpoint.js';
import '@dynamic-labs/iconic';
import '@dynamic-labs/wallet-connector-core';
import 'react/jsx-runtime';
import '../../../context/ViewContext/ViewContext.js';
import '../../../shared/logger.js';
import '@dynamic-labs/wallet-book';
import '@dynamic-labs/utils';
import '../../../utils/constants/colors.js';
import '../../../utils/constants/values.js';
import '../../../shared/consts/index.js';
import '../../../../../_virtual/_tslib.js';
import '@dynamic-labs/multi-wallet';
import 'react-international-phone';
import '../../state/nonce/nonce.js';
import '@dynamic-labs/locale';
import { useDynamicSettings } from '../../state/dynamicContextProps/dynamicContextProps.js';
import '../../state/primaryWalletId/primaryWalletId.js';
import '../../state/connectedWalletsInfo/connectedWalletsInfo.js';
import '../../../events/dynamicEvents.js';
import { useProjectSettings } from '../../../client/extension/projectSettings/useProjectSettings/useProjectSettings.js';

const useDynamicSettingsValue = (projectSettingName, dynamicSettingName) => {
    var _a;
    const projectSettings = useProjectSettings();
    const dynamicSettings = useDynamicSettings();
    return ((_a = projectSettings === null || projectSettings === void 0 ? void 0 : projectSettings.general[projectSettingName]) !== null && _a !== void 0 ? _a : dynamicSettings[dynamicSettingName]);
};
const useAppName = () => useDynamicSettingsValue('displayName', 'appName');

export { useAppName };
