This commit is contained in:
2025-07-21 16:54:30 +09:00
parent 69d111a133
commit 5a4919116d
4 changed files with 92 additions and 129 deletions
+18
View File
@@ -1,7 +1,17 @@
import React from 'react'
import { CATEGORIES, USER_ROLES, ViewFlagBehavior } from '@/consts'
export type Category = typeof CATEGORIES[number]
export type Menu = MenuItem[]
export type MenuItem = {
name: string
to: string
base?: string
subMenu: SubMenuItem[] }
export type NicoTag = Tag & {
category: 'nico'
linkedTags: Tag[] }
@@ -15,6 +25,14 @@ export type Post = {
tags: Tag[]
viewed: boolean }
export type SubMenuItem = {
component: React.ReactNode
visible: boolean
} | {
name: string
to: string
visible?: boolean }
export type Tag = {
id: number
name: string