- {autoApply ? null : (
-
- )}
-
+ {!props.popout ? <>
+
+ {Messages.REPLUGGED_QUICKCSS}
+
+ {autoApply ? null : (
+
+ )}
+
+
+
+
+ > : null}
+
+ {!props.popout && props.isPopoutOpen ? (
+
{
+ closePopout("DISCORD_REPLUGGED_QUICKCSS");
+ }}>
+ {Messages.REPLUGGED_QUICKCSS_POPPED_OUT}
+
+ ) : (
+
+
+ {props.popout ? (
+
+ {
+ setAlwaysOnTop("DISCORD_REPLUGGED_QUICKCSS", !alwaysOnTop);
+ setAlwaysOnTop_(!alwaysOnTop);
+ }}>
+ {alwaysOnTop ? : }
+
+
+ ) : (
+
+ {
+ if (!PopoutWindow)
+ PopoutWindow = webpack.getBySource(".EMBEDDED_ACTIVITIES_ARE_YOU_SURE_WANT_TO_LEAVE");
+ openPopout(
+ "DISCORD_REPLUGGED_QUICKCSS",
+ () => (
+
+
+
+ ),
+ {},
+ );
+ }}>
+
+
+
+ )}
+
+
-
-
-
+ )}
>
);
};
+console.log("omg")
+export const ConnectedQuickCSS = flux.connectStores<
+ { popout: boolean },
+ { popout: boolean; isPopoutOpen: boolean }
+>([PopoutWindowStore], (props) => {
+ return {
+ isPopoutOpen: PopoutWindowStore.getWindowOpen("DISCORD_REPLUGGED_QUICKCSS"),
+ popoutOnTop: PopoutWindowStore.getIsAlwaysOnTop("DISCORD_REPLUGGED_QUICKCSS"),
+ ...props,
+ };
+})(QuickCSS);