22 lines
389 B
TypeScript
22 lines
389 B
TypeScript
import type { Image } from "../image"
|
|
import type { Edges } from "./utils/edges"
|
|
import type { RTEDocument } from "../rte/node"
|
|
|
|
export enum PuffStyleEnum {
|
|
button = "button",
|
|
default = "default",
|
|
}
|
|
|
|
export type Puff = {
|
|
imageConnection: Edges<Image>
|
|
link: {
|
|
href: string
|
|
title?: string
|
|
}
|
|
puff_style: PuffStyleEnum
|
|
text: {
|
|
json: RTEDocument
|
|
}
|
|
title: string
|
|
}
|