15 lines
505 B
TypeScript
15 lines
505 B
TypeScript
import type { OwnProps } from './StarsGiftingPickerModal';
|
|
|
|
import { Bundles } from '../../../util/moduleLoader';
|
|
|
|
import useModuleLoader from '../../../hooks/useModuleLoader';
|
|
|
|
const StarsGiftingPickerModalAsync = (props: OwnProps) => {
|
|
const { isOpen } = props;
|
|
const StarsGiftingPickerModal = useModuleLoader(Bundles.Stars, 'StarsGiftingPickerModal', !isOpen);
|
|
|
|
return StarsGiftingPickerModal ? <StarsGiftingPickerModal {...props} /> : undefined;
|
|
};
|
|
|
|
export default StarsGiftingPickerModalAsync;
|