UNPKG

@lifi/widget

Version:

LI.FI Widget for cross-chain bridging and swapping. It will drive your multi-chain strategy and attract new users from everywhere.

12 lines 871 B
import { jsx as _jsx } from "react/jsx-runtime"; import { memo } from 'react'; import { useWidgetConfig } from '../../providers/WidgetProvider/WidgetProvider'; import { getWidgetMaxHeight } from '../../utils/widgetSize'; import { ExpansionTransition } from '../Expansion/ExpansionTransition'; import { chainExpansionWidth, SelectChainExpansionContainer, } from './ChainsExpanded.style'; import { SelectChainContent } from './SelectChainContent'; export const ChainsExpanded = memo(function ChainsExpanded({ formType, open, }) { const { theme } = useWidgetConfig(); return (_jsx(ExpansionTransition, { in: open, width: chainExpansionWidth, children: _jsx(SelectChainExpansionContainer, { expansionHeight: getWidgetMaxHeight(theme), children: _jsx(SelectChainContent, { inExpansion: true, formType: formType }) }) })); }); //# sourceMappingURL=ChainsExpanded.js.map