@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.
9 lines • 489 B
JavaScript
import { useMediaQuery } from '@mui/material';
import { useWidgetConfig } from '../providers/WidgetProvider/WidgetProvider.js';
const defaultExpandableWidth = 852;
export const useWideVariant = () => {
const { variant, useRecommendedRoute } = useWidgetConfig();
const expandableAllowed = useMediaQuery((theme) => theme.breakpoints.up(defaultExpandableWidth));
return variant === 'wide' && expandableAllowed && !useRecommendedRoute;
};
//# sourceMappingURL=useWideVariant.js.map