Forked chat
This commit is contained in:
16
types/menu.ts
Normal file
16
types/menu.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import type React from "react"
|
||||
|
||||
export interface MenuItem {
|
||||
id: string
|
||||
label: string
|
||||
children?: MenuItem[]
|
||||
onClick?: () => void
|
||||
icon?: React.ReactNode
|
||||
disabled?: boolean
|
||||
isActive?: boolean
|
||||
isVisible?: boolean
|
||||
isSelected?: boolean
|
||||
isExpanded?: boolean
|
||||
isLoading?: boolean
|
||||
isChecked?: boolean
|
||||
}
|
||||
35
types/node.ts
Normal file
35
types/node.ts
Normal file
@@ -0,0 +1,35 @@
|
||||
export enum NodeType {
|
||||
Episode = "Episode",
|
||||
Image = "Image",
|
||||
SoundEffect = "SoundEffect",
|
||||
Song = "Song",
|
||||
Action = "Action",
|
||||
Scene = "Scene",
|
||||
InventoryItem = "InventoryItem",
|
||||
Character = "Character",
|
||||
Dialogue = "Dialogue",
|
||||
Actions = "Actions",
|
||||
}
|
||||
|
||||
export interface NodeAction {
|
||||
name: string
|
||||
imageUrl: string
|
||||
description: string
|
||||
onClick: () => void
|
||||
}
|
||||
|
||||
export interface NodeProperty {
|
||||
id: string
|
||||
label: string
|
||||
type: string
|
||||
value: any
|
||||
readOnly?: boolean
|
||||
}
|
||||
|
||||
export interface Node {
|
||||
id: string
|
||||
type: NodeType
|
||||
actions: NodeAction[]
|
||||
children?: Node[]
|
||||
properties: Record<string, NodeProperty>
|
||||
}
|
||||
Reference in New Issue
Block a user