diff --git a/src/components/moderation/ContentHider.tsx b/src/components/moderation/ContentHider.tsx index 67aef67b46..69193592ac 100644 --- a/src/components/moderation/ContentHider.tsx +++ b/src/components/moderation/ContentHider.tsx @@ -31,6 +31,37 @@ export function ContentHider({ ignoreMute?: boolean style?: StyleProp childContainerStyle?: StyleProp +}>) { + const blur = modui?.blurs[0] + if (!blur || (ignoreMute && isJustAMute(modui))) { + return ( + + {children} + + ) + } + return ( + + {children} + + ) +} + +function ContentHiderActive({ + testID, + modui, + style, + childContainerStyle, + children, +}: React.PropsWithChildren<{ + testID?: string + modui: ModerationUI + style?: StyleProp + childContainerStyle?: StyleProp }>) { const t = useTheme() const {_} = useLingui() @@ -40,7 +71,6 @@ export function ContentHider({ const {labelDefs} = useLabelDefinitions() const globalLabelStrings = useGlobalLabelStrings() const {i18n} = useLingui() - const blur = modui?.blurs[0] const desc = useModerationCauseDescription(blur) @@ -99,14 +129,6 @@ export function ContentHider({ globalLabelStrings, ]) - if (!blur || (ignoreMute && isJustAMute(modui))) { - return ( - - {children} - - ) - } - return (