summaryrefslogtreecommitdiffstats
path: root/src/components/Visibility/VisibilitiesInfos.js
blob: e7955d3049670d7a567d2c4153c59ba176d72c17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import { translate as t } from '@nextcloud/l10n'

/**
 * @typedef {object} Visibility
 * @property {string} id - One of 'public', 'followers', 'direct', 'unlisted'
 * @property {string} text - Short label of the visibility
 * @property {string} description - Description of the visibility
 */

/** @type {Visibility[]} */
export default [
	{
		id: 'public',
		text: t('social', 'Public'),
		description: t('social', 'Visible for all'),
	},
	{
		id: 'unlisted',
		text: t('social', 'Unlisted'),
		description: t('social', 'Visible for all, but opted-out of discovery features'),
	},
	{
		id: 'followers',
		text: t('social', 'Followers'),
		description: t('social', 'Visible to followers only'),
	},
	{
		id: 'direct',
		text: t('social', 'Direct message'),
		description: t('social', 'Visible to mentioned users only'),
	},
]