@dynamic-labs/sdk-react-core
Version:
A React SDK for implementing wallet web3 authentication and authorization to your website.
13 lines (10 loc) • 459 B
JavaScript
'use client'
import { useThemeContext } from '../../../context/ThemeContext/ThemeContext.js';
import { useColorSchemePreference } from '../useColorSchemePreference/useColorSchemePreference.js';
const useIconThemeVariant = () => {
const { theme: { theme: { name }, }, } = useThemeContext();
const preference = useColorSchemePreference();
const variant = name === 'auto' ? preference : name;
return variant;
};
export { useIconThemeVariant };