+ {currentAccountInfo?.avatarStatic && (
+
+ )}
+ {!standalone ? (
+
+ {' '}
-
-
- ) : (
- hasOpener && (
-
{' '}
+
+
+ ) : (
+ hasOpener && (
+
- )
- )}
-
-
-
- Replying to @
- {replyToStatus.account.acct || replyToStatus.account.username}
- ’s status
+ onClose({
+ fn: () => {
+ const passData = {
+ editStatus,
+ replyToStatus,
+ draftStatus: {
+ uid: UID.current,
+ status: textareaRef.current.value,
+ spoilerText: spoilerTextRef.current.value,
+ visibility,
+ language,
+ sensitive,
+ poll,
+ mediaAttachments,
+ },
+ };
+ window.opener.__COMPOSE__ = passData; // Pass it here instead of `showCompose` due to some weird proxy issue again
+ window.opener.__STATES__.showCompose = true;
+ },
+ });
+ }}
+ >
+
+
+ )
+ )}
+
+ {!!replyToStatus && (
+
+
+
+ Replying to @
+ {replyToStatus.account.acct || replyToStatus.account.username}
+ ’s status
+
-