import type { Category, Platform } from 'types'

export const LIGHT_COLOUR_SHADE = 800
export const DARK_COLOUR_SHADE = 300

export const CATEGORIES = [
    'deerjikist',
    'meme',
    'character',
    'general',
    'material',
    'meta',
    'nico'] as const

export const CATEGORY_NAMES: Record<Category, string> = {
    deerjikist: 'ニジラー',
    meme:       '原作・ネタ元・ミーム等',
    character:  'キャラクター',
    general:    '一般',
    material:   '素材',
    meta:       'メタタグ',
    nico:       'ニコニコタグ'} as const

export const FETCH_POSTS_ORDER_FIELDS = [
    'title',
    'url',
    'original_created_at',
    'created_at',
    'updated_at'] as const

export const PLATFORMS = ['nico', 'youtube'] as const

export const PLATFORM_NAMES: Record<Platform, string> =
    { nico: 'ニコニコ', youtube: 'YouTube' } as const

export const TAG_COLOUR = {
    deerjikist: 'rose',
    meme:       'purple',
    character:  'lime',
    general:    'cyan',
    material:   'orange',
    meta:       'yellow',
    nico:       'gray'} as const satisfies Record<Category, string>

export const USER_ROLES = ['admin', 'member', 'guest'] as const

export const ViewFlagBehavior = {
    OnShowedDetail: 1,
    OnClickedLink:  2,
    NotAuto:        3} as const
