|
|
@ -16,7 +16,7 @@
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
import { filters, findByCode, findByPropsLazy, mapMangledModuleLazy } from "@webpack";
|
|
|
|
import { filters, findByProps, findByPropsLazy, mapMangledModuleLazy } from "@webpack";
|
|
|
|
import type { ComponentType, PropsWithChildren, ReactNode, Ref } from "react";
|
|
|
|
import type { ComponentType, PropsWithChildren, ReactNode, Ref } from "react";
|
|
|
|
|
|
|
|
|
|
|
|
import { LazyComponent } from "./react";
|
|
|
|
import { LazyComponent } from "./react";
|
|
|
@ -124,7 +124,7 @@ export type ImageModal = ComponentType<{
|
|
|
|
shouldHideMediaOptions?: boolean;
|
|
|
|
shouldHideMediaOptions?: boolean;
|
|
|
|
}>;
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
|
|
export const ImageModal = LazyComponent(() => findByCode(".renderLinkComponent", ".responsive") as ImageModal);
|
|
|
|
export const ImageModal = LazyComponent(() => findByProps("ImageModal").ImageModal as ImageModal);
|
|
|
|
|
|
|
|
|
|
|
|
export const ModalRoot = LazyComponent(() => Modals.ModalRoot);
|
|
|
|
export const ModalRoot = LazyComponent(() => Modals.ModalRoot);
|
|
|
|
export const ModalHeader = LazyComponent(() => Modals.ModalHeader);
|
|
|
|
export const ModalHeader = LazyComponent(() => Modals.ModalHeader);
|
|
|
|