{}}
+ />
)
}
function MockAccountCard({
- label,
profile,
moderation,
}: {
- label: string
profile: AppBskyActorDefs.ProfileViewBasic
- moderation: ProfileModeration
+ moderation: ModerationDecision
}) {
const t = useTheme()
- if (moderation.account.filter || moderation.profile.filter) {
+ if (moderation.ui('profileList').filter) {
return (
Filtered from the listing
@@ -446,104 +542,36 @@ function MockAccountCard({
)
}
- return (
-
-
-
-
- {sanitizeDisplayName('Bob Robertson', moderation.profile)}{' '}
-
- @bob.bsky.social
- Thought leader or something.
-
-
-
- )
+ return
}
function MockAccountScreen({
- label,
profile,
moderation,
moderationOpts,
}: {
- label: string
profile: AppBskyActorDefs.ProfileViewBasic
- moderation: ProfileModeration
+ moderation: ModerationDecision
moderationOpts: ModerationOpts
}) {
const t = useTheme()
return (
-
+
+ modui={moderation.ui('profileView')}>
-
- {/*
-
-
-
-
-
- Bob Robertson
- @bob.bsky.social
- Thought leader or something.
-
- */}
)
}
-function ModerationUIView({mod, label}: {mod: ModerationUI; label: string}) {
- return (
-
- {label}:
-
-
-
-
-
- )
-}
-
function Flag({v, label}: {v: boolean | undefined; label: string}) {
const t = useTheme()
return (
@@ -556,12 +584,12 @@ function Flag({v, label}: {v: boolean | undefined; label: string}) {
a.border,
t.atoms.border_contrast_medium,
{
- backgroundColor: v ? t.palette.black : t.palette.white,
+ backgroundColor: t.palette.contrast_25,
width: 14,
height: 14,
},
]}>
- {v && }
+ {v && }
{label}