TelegramPWA/src/components/modals/gift/fragment/GiftWithdrawModal.async.tsx
2025-01-27 23:51:10 +01:00

19 lines
635 B
TypeScript

import type { FC } from '../../../../lib/teact/teact';
import React from '../../../../lib/teact/teact';
import type { OwnProps } from './GiftWithdrawModal';
import { Bundles } from '../../../../util/moduleLoader';
import useModuleLoader from '../../../../hooks/useModuleLoader';
const GiftWithdrawModalAsync: FC<OwnProps> = (props) => {
const { modal } = props;
const GiftWithdrawModal = useModuleLoader(Bundles.Stars, 'GiftWithdrawModal', !modal);
// eslint-disable-next-line react/jsx-props-no-spreading
return GiftWithdrawModal ? <GiftWithdrawModal {...props} /> : undefined;
};
export default GiftWithdrawModalAsync;