diff --git a/src/community/api.js b/src/community/api.js index 0643e5dfd2c..eb77d4bd0aa 100644 --- a/src/community/api.js +++ b/src/community/api.js @@ -324,6 +324,14 @@ const api = { bans: () => request('/admin/bans'), ban: (username, reason) => request('/admin/ban', {method: 'POST', body: {username, reason}}), unban: username => request('/admin/unban', {method: 'POST', body: {username}}), + shadowBans: () => request('/admin/shadowbans', {cache: false}), + shadowBan: (username, reason) => request('/admin/shadowban', {method: 'POST', body: {username, reason}}), + liftShadowBan: username => request('/admin/unshadowban', {method: 'POST', body: {username}}), + hideProject: (id, reason) => request(`/admin/projects/${id}/hide`, {method: 'POST', body: {reason}}), + restoreProject: id => request(`/admin/projects/${id}/restore`, {method: 'POST'}), + shadowBanProject: (id, reason) => + request(`/admin/projects/${id}/shadowban`, {method: 'POST', body: {reason}}), + liftProjectShadowBan: id => request(`/admin/projects/${id}/unshadowban`, {method: 'POST'}), getUser: username => request(`/admin/user?username=${encodeURIComponent(username)}`), setStanding: (username, level, reason) => request('/admin/standing', {method: 'POST', body: {username, level, reason}}), diff --git a/src/community/notification-preferences.js b/src/community/notification-preferences.js index bfbd5fa6d75..540a67afc6b 100644 --- a/src/community/notification-preferences.js +++ b/src/community/notification-preferences.js @@ -22,7 +22,7 @@ const setNotificationPreferences = preferences => { }; const categoryForNotification = type => { - if (['standing', 'moderation', 'news', 'report_update'].includes(type)) return 'system'; + if (['standing', 'moderation', 'project_hidden', 'project_restored', 'news', 'report_update'].includes(type)) return 'system'; if (['purchase', 'donation', 'cosmetic_gift', 'item_received', 'item_sold', 'item_purchased'].includes(type)) return 'economy'; if (['remix', 'contribution', 'project_feedback', 'project_review', 'roadmap_comment', 'space_project', 'space_comment', 'space_curator_invite', 'space_curator_accepted', 'space_curator_declined', 'space_curator_removed', 'release'].includes(type)) return 'projects'; return 'social'; diff --git a/src/community/notification-text.jsx b/src/community/notification-text.jsx index 74ea8f7395b..3361485622c 100644 --- a/src/community/notification-text.jsx +++ b/src/community/notification-text.jsx @@ -5,7 +5,7 @@ import {isMilestoneNotification, milestoneLink, milestoneText} from './milestone // Shared by the notifications page and the Home preview so both describe and // link notifications the same way. -export const SYSTEM_TYPES = ['standing', 'moderation', 'news', 'report_update']; +export const SYSTEM_TYPES = ['standing', 'moderation', 'project_hidden', 'project_restored', 'news', 'report_update']; export const GROUP_TYPES = [ 'group_invite', @@ -138,6 +138,7 @@ const reportOutcome = (action, t) => { case 'warn_user': return t('Your report was actioned with a warning.'); case 'ban_user': return t('Your report was actioned with a ban.'); case 'unshare_project': return t('Your report was actioned; the project was unshared.'); + case 'hide_project': return t('Your report was actioned; the project was hidden.'); default: return t('Your report was reviewed.'); } }; @@ -223,6 +224,18 @@ export const describeNotification = (n, t, actor) => { case 'standing': return n.reason ? t('Your account standing is now {level}: {reason}', {level: strong(n.level), reason: n.reason}) : t('Your account standing is now {level}.', {level: strong(n.level)}); + case 'project_hidden': + if (project) { + return n.reason ? + t('A moderator hid {project}: {reason}', {project, reason: n.reason}) : + t('A moderator hid {project}.', {project}); + } + return n.reason ? + t('A moderator hid your project: {reason}', {reason: n.reason}) : + t('A moderator hid your project.'); + case 'project_restored': return project ? + t('A moderator restored {project}.', {project}) : + t('A moderator restored your project.'); case 'moderation': return n.message ? t.plain(n.message) : t('A moderator sent you a message.'); diff --git a/src/community/pages/Admin.jsx b/src/community/pages/Admin.jsx index 7a5bbe3dcc2..918fe6bd485 100644 --- a/src/community/pages/Admin.jsx +++ b/src/community/pages/Admin.jsx @@ -3,7 +3,7 @@ import {useCommunityIntl as useCommunityText} from '../i18n.jsx'; import React, {useRef, useState} from 'react'; import {useSearchParams} from 'react-router-dom'; import { - Activity, AlertTriangle, Ban, BarChart3, Flag, FolderOpen, HardDrive, Puzzle, ShieldCheck, User + Activity, AlertTriangle, Ban, BarChart3, EyeOff, Flag, FolderOpen, Ghost, HardDrive, Puzzle, ShieldCheck, User } from 'lucide-react'; import api from '../api'; import {useUser} from '../UserContext.jsx'; @@ -23,6 +23,7 @@ import ExtensionManager from './admin/ExtensionManager.jsx'; import ErrorManager from './admin/ErrorManager.jsx'; import ReportsSection from './admin/ReportsSection.jsx'; import BansSection from './admin/BansSection.jsx'; +import ShadowBansSection from './admin/ShadowBansSection.jsx'; import AdminsSection from './admin/AdminsSection.jsx'; import useAdminData from './admin/use-admin-data.js'; @@ -42,7 +43,7 @@ const SECTIONS = [ const Admin = () => { const {text: communityText} = useCommunityText(); const {user, loading} = useUser(); - const {reports, openErrors, bans, admins, error, setError, load} = useAdminData(user); + const {reports, openErrors, bans, shadowBans, admins, error, setError, load} = useAdminData(user); const [newAdmin, setNewAdmin] = useState(''); const [searchParams, setSearchParams] = useSearchParams(); const requested = searchParams.get('section'); @@ -93,6 +94,20 @@ const Admin = () => { }); }; + const hideFromReport = report => { + setDialogError(''); + setDialog({ + kind: 'hide-report', + report, + title: communityText('Hide this project?'), + description: communityText('The project becomes private and its creator can\'t share it again until an admin restores it. They get a notification with your reason.'), + action: communityText('Hide project'), + danger: true, + fields: [{key: 'reason', label: communityText('Reason for the creator'), value: '', multiline: true, maxLength: 1000}], + icon: EyeOff + }); + }; + const warnFromReport = report => { setDialogError(''); setDialog({ @@ -137,6 +152,22 @@ const Admin = () => { }); }; + const shadowBanByName = () => { + setDialogError(''); + setDialog({ + kind: 'shadow-ban-user', + title: communityText('Shadow ban a user'), + description: communityText('Their projects, comments and profile leave every list for everyone else. They are not told and still see everything as normal.'), + action: communityText('Shadow ban'), + danger: true, + fields: [ + {key: 'username', label: communityText('Username'), value: '', maxLength: 80}, + {key: 'reason', label: communityText('Private note for admins'), value: '', multiline: true, maxLength: 1000} + ], + icon: Ghost + }); + }; + const updateDialogField = (key, value) => { setDialog(current => ({ ...current, @@ -154,6 +185,14 @@ const Admin = () => { setDialogError(communityText('Enter a reply.')); return; } + if (dialog.kind === 'hide-report' && !values.reason) { + setDialogError(communityText('Tell the creator why their project is hidden.')); + return; + } + if (dialog.kind === 'shadow-ban-user' && !values.username) { + setDialogError(communityText('Enter a username.')); + return; + } if (dialog.kind === 'warn-report' && !values.reason) { setDialogError(communityText('Enter a warning reason.')); return; @@ -170,6 +209,9 @@ const Admin = () => { await api.admin.messageUser(dialog.report.reporter, values.message); await api.admin.reportAction(dialog.report.id, 'dismiss'); window.dispatchEvent(new Event('mw:reports-updated')); + } else if (dialog.kind === 'hide-report') { + await api.admin.reportAction(dialog.report.id, 'hide_project', values.reason); + window.dispatchEvent(new Event('mw:reports-updated')); } else if (dialog.kind === 'warn-report') { await api.admin.reportAction(dialog.report.id, 'warn_user', values.reason); window.dispatchEvent(new Event('mw:reports-updated')); @@ -178,6 +220,8 @@ const Admin = () => { window.dispatchEvent(new Event('mw:reports-updated')); } else if (dialog.kind === 'ban-user') { await api.admin.ban(values.username, values.reason); + } else if (dialog.kind === 'shadow-ban-user') { + await api.admin.shadowBan(values.username, values.reason); } setDialog(null); load(); @@ -199,6 +243,26 @@ const Admin = () => { } }; + const liftShadowBan = async username => { + try { + setError(''); + await api.admin.liftShadowBan(username); + load(); + } catch (e) { + setError(e.message || 'Could not lift that shadow ban.'); + } + }; + + const liftProjectShadowBan = async id => { + try { + setError(''); + await api.admin.liftProjectShadowBan(id); + load(); + } catch (e) { + setError(e.message || 'Could not lift that shadow ban.'); + } + }; + const addAdmin = async () => { const name = newAdmin.trim(); if (!name) return; @@ -279,6 +343,7 @@ const Admin = () => { openCount={openCount} replyToSupport={replyToSupport} act={act} + hideFromReport={hideFromReport} warnFromReport={warnFromReport} banFromReport={banFromReport} /> @@ -316,6 +381,15 @@ const Admin = () => { /> ) : null} + {active === 'bans' ? ( + + ) : null} + {active === 'admins' ? ( ({ }); const visibilityLabel = project => { + if (project.moderationHidden) return 'Hidden by a moderator'; if (project.contributionOnly) return 'Contribution only'; const v = project.visibility || (project.shared ? 'public' : 'private'); if (v === 'public') return 'Shared'; diff --git a/src/community/pages/Notifications.jsx b/src/community/pages/Notifications.jsx index ed652b818c7..850eea39903 100644 --- a/src/community/pages/Notifications.jsx +++ b/src/community/pages/Notifications.jsx @@ -61,6 +61,8 @@ const TYPE_STYLE = { donation: {icon: Coins, color: '#e0a63c'}, standing: {icon: ShieldAlert, color: '#e35d6a'}, moderation: {icon: ShieldAlert, color: '#e35d6a'}, + project_hidden: {icon: ShieldAlert, color: '#e35d6a'}, + project_restored: {icon: ShieldAlert, color: '#3fae6a'}, news: {icon: Megaphone, color: '#9a6ff0'}, report_update: {icon: Flag, color: '#e35d6a'}, contribution: {icon: GitPullRequest, color: '#4c8dff'}, diff --git a/src/community/pages/Project.jsx b/src/community/pages/Project.jsx index 4bc367e39bf..8fa6d168d7d 100644 --- a/src/community/pages/Project.jsx +++ b/src/community/pages/Project.jsx @@ -49,6 +49,7 @@ import ProjectHeader from './project/ProjectHeader.jsx'; import ForkSetupModal from './project/ForkSetupModal.jsx'; import PlayerPrompts from './project/PlayerPrompts.jsx'; import ProjectNotices from './project/ProjectNotices.jsx'; +import ProjectModerationDialog from './admin/ProjectModerationDialog.jsx'; import ProjectStage from './project/ProjectStage.jsx'; import ProjectActivity from './project/ProjectActivity.jsx'; @@ -86,6 +87,7 @@ const Project = () => { const [savingTitle, setSavingTitle] = useState(false); const [thumbnailStatus, setThumbnailStatus] = useState('idle'); const [reporting, setReporting] = useState(false); + const [moderation, setModeration] = useState(null); const [copied, setCopied] = useState(false); const [collectionOpen, setCollectionOpen] = useState(false); const thumbInput = useRef(null); @@ -718,8 +720,21 @@ const Project = () => { menuReport={menuReport} setActionError={setActionError} setDeleteConfirm={setDeleteConfirm} + openModeration={setModeration} /> + {user && user.isAdmin ? ( + setModeration(null)} + onDone={() => { + setModeration(null); + load(); + }} + /> + ) : null} + {collectionOpen ? setCollectionOpen(false)} /> : null} {deleteConfirm ? ( @@ -802,6 +817,8 @@ const Project = () => { projectThemeApplied={projectThemeApplied} revertTheme={revertTheme} setRevertTheme={setRevertTheme} + isAdmin={Boolean(user && user.isAdmin)} + openModeration={setModeration} />
diff --git a/src/community/pages/admin/ProjectManager.jsx b/src/community/pages/admin/ProjectManager.jsx index 18f7c0370b6..8a42c905793 100644 --- a/src/community/pages/admin/ProjectManager.jsx +++ b/src/community/pages/admin/ProjectManager.jsx @@ -12,6 +12,7 @@ import StatusMessage from '../../components/ui/StatusMessage.jsx'; import useLatest from '../../use-latest.js'; import styles from '../Admin.module.css'; import AdminActionDialog from './AdminActionDialog.jsx'; +import ProjectModerationDialog from './ProjectModerationDialog.jsx'; const ProjectManager = () => { const {text: communityText} = useCommunityText(); @@ -22,6 +23,7 @@ const ProjectManager = () => { const [dialog, setDialog] = useState(null); const [dialogError, setDialogError] = useState(''); const [dialogBusy, setDialogBusy] = useState(false); + const [moderation, setModeration] = useState(null); const actionInFlight = useRef(false); const beginSearch = useLatest(); @@ -41,22 +43,20 @@ const ProjectManager = () => { search(''); }, [search]); - const unshare = async id => { + const moderate = (kind, project) => { if (actionInFlight.current) return; - const releaseAction = () => { - actionInFlight.current = false; - }; - actionInFlight.current = true; - try { - setError(''); - await api.unpublish(id); - setNote(communityText('Project unshared.')); - search(query); - } catch (e) { - setError(e.message || 'Could not unshare that project.'); - } finally { - releaseAction(); - } + setError(''); + setNote(''); + setModeration({kind, project}); + }; + + const moderationDone = kind => { + setModeration(null); + if (kind === 'hide') setNote(communityText('Project hidden. Its creator was told why.')); + else if (kind === 'restore') setNote(communityText('Project restored.')); + else if (kind === 'shadow') setNote(communityText('Project shadow banned.')); + else setNote(communityText('Shadow ban lifted.')); + search(query); }; const remove = id => { @@ -106,6 +106,12 @@ const ProjectManager = () => { }} onConfirm={confirmRemove} /> + setModeration(null)} + onDone={moderationDone} + />
{
{project.title || project.id} + {project.moderationHidden ? {communityText('Hidden')} : null} + {project.projectShadowBanned ? {communityText('Shadow banned')} : null} + {project.ownerShadowBanned ? {communityText('Creator shadow banned')} : null} + {project.ownerBanned ? {communityText('Creator banned')} : null} {communityText('by @{value1} · {value2}', {value1: project.owner, value2: project.shared ? communityText('Shared') : communityText('Unshared')})}
- {project.shared ? ( - - ) : null} + {project.moderationHidden ? ( + + ) : ( + + )} + {project.projectShadowBanned ? ( + + ) : ( + + )}
diff --git a/src/community/pages/admin/ProjectModerationDialog.jsx b/src/community/pages/admin/ProjectModerationDialog.jsx new file mode 100644 index 00000000000..38cf413b989 --- /dev/null +++ b/src/community/pages/admin/ProjectModerationDialog.jsx @@ -0,0 +1,122 @@ +/* eslint-disable max-len */ +import PropTypes from 'prop-types'; +import React, {useEffect, useRef, useState} from 'react'; +import {Eye, EyeOff, Ghost} from 'lucide-react'; +import {useCommunityIntl as useCommunityText} from '../../i18n.jsx'; +import api from '../../api'; +import AdminActionDialog from './AdminActionDialog.jsx'; + +const dialogFor = (kind, title, communityText) => { + if (kind === 'hide') { + return { + title: communityText('Hide {value1}?', {value1: title}), + description: communityText('The project becomes private and its creator can\'t share it again until an admin restores it. They get a notification with your reason.'), + action: communityText('Hide project'), + danger: true, + icon: EyeOff, + fields: [{key: 'reason', label: communityText('Reason for the creator'), value: '', multiline: true, maxLength: 1000}] + }; + } + if (kind === 'restore') { + return { + title: communityText('Restore {value1}?', {value1: title}), + description: communityText('The project goes back to how it was shared before it was hidden, and its creator gets a notification.'), + action: communityText('Restore project'), + icon: Eye + }; + } + if (kind === 'shadow') { + return { + title: communityText('Shadow ban {value1}?', {value1: title}), + description: communityText('The project leaves explore, search, profiles and every other list, but its link keeps working. Its creator is not told and still sees it everywhere.'), + action: communityText('Shadow ban'), + danger: true, + icon: Ghost, + fields: [{key: 'reason', label: communityText('Private note for admins'), value: '', multiline: true, maxLength: 1000}] + }; + } + return { + title: communityText('Lift the shadow ban on {value1}?', {value1: title}), + description: communityText('The project shows up in lists again.'), + action: communityText('Lift shadow ban'), + icon: Ghost + }; +}; + +const runAction = (kind, id, reason) => { + if (kind === 'hide') return api.admin.hideProject(id, reason); + if (kind === 'restore') return api.admin.restoreProject(id); + if (kind === 'shadow') return api.admin.shadowBanProject(id, reason); + return api.admin.liftProjectShadowBan(id); +}; + +const ProjectModerationDialog = ({kind, project, onClose, onDone}) => { + const {text: communityText} = useCommunityText(); + const [dialog, setDialog] = useState(null); + const [busy, setBusy] = useState(false); + const [error, setError] = useState(''); + const inFlight = useRef(false); + + useEffect(() => { + setError(''); + setDialog(kind && project ? dialogFor(kind, project.title || project.id, communityText) : null); + }, [kind, project && project.id]); + + if (!dialog) return null; + + const updateField = (key, value) => { + setError(''); + setDialog(current => ({ + ...current, + fields: current.fields.map(field => (field.key === key ? {...field, value} : field)) + })); + }; + + const confirm = async () => { + if (inFlight.current) return; + const reason = ((dialog.fields || []).find(field => field.key === 'reason') || {value: ''}).value.trim(); + if (kind === 'hide' && !reason) { + setError(communityText('Tell the creator why their project is hidden.')); + return; + } + const release = () => { + inFlight.current = false; + }; + inFlight.current = true; + setBusy(true); + try { + const result = await runAction(kind, project.id, reason); + onDone(kind, result && result.project); + } catch (e) { + setError(e.message || communityText('Could not update this project.')); + } finally { + release(); + setBusy(false); + } + }; + + return ( + { + if (!inFlight.current) onClose(); + }} + onConfirm={confirm} + /> + ); +}; + +ProjectModerationDialog.propTypes = { + kind: PropTypes.oneOf(['hide', 'restore', 'shadow', 'unshadow']), + project: PropTypes.shape({ + id: PropTypes.string, + title: PropTypes.string + }), + onClose: PropTypes.func.isRequired, + onDone: PropTypes.func.isRequired +}; + +export default ProjectModerationDialog; diff --git a/src/community/pages/admin/ReportsSection.jsx b/src/community/pages/admin/ReportsSection.jsx index e2434eb17f6..69ac1652555 100644 --- a/src/community/pages/admin/ReportsSection.jsx +++ b/src/community/pages/admin/ReportsSection.jsx @@ -14,7 +14,7 @@ import EvidencePanel from './EvidencePanel.jsx'; import {adminUserPath} from './admin-links.js'; // The open moderation queue: reports and support requests with their actions. -const ReportsSection = ({reports, openCount, replyToSupport, act, warnFromReport, banFromReport}) => { +const ReportsSection = ({reports, openCount, replyToSupport, act, hideFromReport, warnFromReport, banFromReport}) => { const {text: communityText} = useCommunityText(); return (
@@ -85,7 +85,7 @@ const ReportsSection = ({reports, openCount, replyToSupport, act, warnFromReport ) : null} {report.type === 'project' ? ( - + ) : null} {report.type !== 'support' ? ( } + /> + {users.length || projects.length ? ( +
+ {users.map(entry => ( +
+ +
+ {`@${entry.username}`} + + {meta(entry)} + {entry.reason ? ` · ${entry.reason}` : ''} + +
+
+ +
+
+ ))} + {projects.map(entry => ( +
+
+ + {entry.title || entry.id} + {communityText('Project')} + + + {communityText('by @{value1}', {value1: entry.owner})} + {` · ${meta(entry)}`} + {entry.reason ? ` · ${entry.reason}` : ''} + +
+
+ +
+
+ ))} +
+ ) : ( + + {communityText('No creators or projects are shadow banned.')} + + )} +
+ ); +}; + +ShadowBansSection.propTypes = { + shadowBans: PropTypes.shape({ + users: PropTypes.arrayOf(PropTypes.object), + projects: PropTypes.arrayOf(PropTypes.object) + }).isRequired, + shadowBanByName: PropTypes.func.isRequired, + liftUser: PropTypes.func.isRequired, + liftProject: PropTypes.func.isRequired +}; + +export default ShadowBansSection; diff --git a/src/community/pages/admin/UserDetailCard.jsx b/src/community/pages/admin/UserDetailCard.jsx index 82a349b81b0..5170be56497 100644 --- a/src/community/pages/admin/UserDetailCard.jsx +++ b/src/community/pages/admin/UserDetailCard.jsx @@ -5,7 +5,7 @@ import {Link} from 'react-router-dom'; import {useCommunityIntl as useCommunityText} from '../../i18n.jsx'; import {getCommunityLocale} from '../../locale.js'; import { - Activity, ArrowLeft, Copy, ExternalLink, Flag, FolderOpen, Gavel, LayoutDashboard, + Activity, ArrowLeft, Copy, ExternalLink, Flag, FolderOpen, Gavel, Ghost, LayoutDashboard, MessageSquare, NotebookPen, UserCog } from 'lucide-react'; import api, {projectUrl} from '../../api'; @@ -20,6 +20,7 @@ import StatusMessage from '../../components/ui/StatusMessage.jsx'; import {formatBytes, formatDate, formatDateTime, timeAgoText} from '../../format'; import styles from '../Admin.module.css'; import AdminActionDialog from './AdminActionDialog.jsx'; +import ProjectModerationDialog from './ProjectModerationDialog.jsx'; import {reportTypeLabel, standingLabel} from './labels.js'; import {commentLocation} from './admin-links.js'; @@ -104,6 +105,8 @@ const UserDetailCard = ({username, onBack, onChanged}) => { const [dialogBusy, setDialogBusy] = useState(false); const [dialogError, setDialogError] = useState(''); const [busyAction, setBusyAction] = useState(''); + const [shadowNote, setShadowNote] = useState(''); + const [moderation, setModeration] = useState(null); const deleteInFlight = useRef(false); const actionInFlight = useRef(false); const currentUsername = useRef(username); @@ -129,6 +132,8 @@ const UserDetailCard = ({username, onBack, onChanged}) => { setAdminNote((result.note && result.note.text) || ''); setReasonText(''); setMessage(''); + setShadowNote(''); + setModeration(null); }) .catch(e => { if (!active) return; @@ -220,7 +225,23 @@ const UserDetailCard = ({username, onBack, onChanged}) => { if (navigator.clipboard && data.userId) navigator.clipboard.writeText(data.userId).catch(() => {}); }; - const unshareProject = pid => run(`unshare:${pid}`, () => api.unpublish(pid), communityText('Project unshared.')); + const shadowBanned = Boolean(data && data.shadowBan && data.shadowBan.created); + + const toggleShadowBan = async () => { + const done = await run( + 'shadow', + () => (shadowBanned ? api.admin.liftShadowBan(data.username) : api.admin.shadowBan(data.username, shadowNote.trim())), + shadowBanned ? communityText('Shadow ban lifted.') : communityText('Shadow banned. They are not told.') + ); + if (done) setShadowNote(''); + }; + + const moderationDone = kind => { + setModeration(null); + setNote(kind === 'hide' ? communityText('Project hidden. Its creator was told why.') : communityText('Project restored.')); + refresh(currentUsername.current); + if (onChanged) onChanged(); + }; const deleteProject = pid => { if (deleteInFlight.current) return; @@ -337,6 +358,12 @@ const UserDetailCard = ({username, onBack, onChanged}) => { }} onConfirm={confirmDialog} /> + setModeration(null)} + onDone={moderationDone} + />
- {project.shared ? ( - - ) : null} + {project.moderationHidden ? ( + + ) : ( + + )}
@@ -605,6 +636,35 @@ const UserDetailCard = ({username, onBack, onChanged}) => { ) :

{communityText('No standing changes recorded.')}

} +
+ +

+ {communityText('Their projects, comments and profile leave every list for everyone else, and they stop sending notifications. Links still work, and they are not told.')} +

+ {shadowBanned ? ( +

+ {communityText('Shadow banned by @{value1} on {value2}.', {value1: data.shadowBan.by || '', value2: formatDate(data.shadowBan.created)})} + {data.shadowBan.reason ? ` ${data.shadowBan.reason}` : ''} +

+ ) : ( + setShadowNote(e.target.value)} + /> + )} +
+ + +
+