mirror of
https://github.com/docmost/docmost.git
synced 2026-05-13 02:34:05 +08:00
1f4bd129a8
* add callout, youtube embed, image, video, table, detail, math * fix attachments module * other fixes
9 lines
306 B
TypeScript
9 lines
306 B
TypeScript
export type CalloutType = "default" | "info" | "success" | "warning" | "danger";
|
|
const validCalloutTypes = ["default", "info", "success", "warning", "danger"];
|
|
|
|
export function getValidCalloutType(value: string): string {
|
|
if (value) {
|
|
return validCalloutTypes.includes(value) ? value : "info";
|
|
}
|
|
}
|