Defaults: CurrencySwitcher
Ez az oldal még csak angolul érhető el.
The defaults of @poltura/theme-sdk/chrome, CurrencySwitcher to CurrencySwitcher.
Ezen az oldalon
import { … } from '@poltura/theme-sdk/chrome';CurrencySwitcher
The currency switcher on its own, drawn only when the storefront offers more than one currency.
CurrencySwitcher(props: CurrencySwitcherProps): ReactElement | nullLocaleSwitcher already offers the currencies; draw this beside a LocaleSwitcher with currency={false}.
Props: CurrencySwitcherProps
import { CurrencySwitcher, LocaleSwitcher } from '@poltura/theme-sdk/chrome';
export function MarketControls() {
return (
<div className='flex items-center gap-2'>
<LocaleSwitcher label='flag' currency={false} />
<CurrencySwitcher label='symbol' />
</div>
);
}See also: useCurrencySwitcher