19 lines
635 B
TypeScript
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;
|