about summary refs log tree commit diff
path: root/src/lib/labeling/types.ts
blob: 84d59be7fdae805516c51b27b3afa0024bd1312c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import {ComAtprotoLabelDefs} from '@atproto/api'
import {LabelPreferencesModel} from 'state/models/ui/preferences'

export type Label = ComAtprotoLabelDefs.Label

export interface LabelValGroup {
  id:
    | keyof LabelPreferencesModel
    | 'illegal'
    | 'always-filter'
    | 'always-warn'
    | 'unknown'
  title: string
  isAdultImagery?: boolean
  subtitle?: string
  warning: string
  values: string[]
}