sanity
Version:
Sanity is a real-time content infrastructure with a scalable, hosted backend featuring a Graph Oriented Query Language (GROQ), asset pipelines and fast edge caches
49 lines (43 loc) • 1 kB
text/typescript
import {type ColorHueKey} from '@sanity/color'
import {type CommentReactionOption, type CommentReactionShortNames} from './types'
/**
* @internal
* @hidden
*/
export const COMMENTS_INSPECTOR_NAME = 'sanity/comments'
export const COMMENTS_HIGHLIGHT_HUE_KEY: ColorHueKey = 'yellow'
// These should not be alphabetized as the current order is intentional
export const COMMENT_REACTION_OPTIONS: CommentReactionOption[] = [
{
shortName: ':+1:',
title: 'Thumbs up',
},
{
shortName: ':-1:',
title: 'Thumbs down',
},
{
shortName: ':heart:',
title: 'Heart',
},
{
shortName: ':rocket:',
title: 'Rocket',
},
{
shortName: ':heavy_plus_sign:',
title: 'Heavy plus sign',
},
{
shortName: ':eyes:',
title: 'Eyes',
},
]
export const COMMENT_REACTION_EMOJIS: Record<CommentReactionShortNames, string> = {
':-1:': '👎',
':+1:': '👍',
':eyes:': '👀',
':heart:': '❤️',
':heavy_plus_sign:': '➕',
':rocket:': '🚀',
}