Add alerts to embeds (#1138)
* Add alerts to embeds * Add images to the mock data * Fix types
This commit is contained in:
@@ -75,3 +75,13 @@ export function getProfileModerationCauses(
|
||||
return true
|
||||
}) as ModerationCause[]
|
||||
}
|
||||
|
||||
export function isCauseALabelOnUri(
|
||||
cause: ModerationCause | undefined,
|
||||
uri: string,
|
||||
): boolean {
|
||||
if (cause?.type !== 'label') {
|
||||
return false
|
||||
}
|
||||
return cause.label.uri === uri
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user