mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-18 16:32:33 +08:00
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
![]() |
import type FNote from "../../entities/fnote.js";
|
||
|
import CommandButtonWidget from "./command_button.js";
|
||
|
|
||
|
export default class LlmChatButton extends CommandButtonWidget {
|
||
|
|
||
|
constructor(note: FNote) {
|
||
|
super();
|
||
|
|
||
|
this.command("showLlmChat")
|
||
|
.title(() => note.title)
|
||
|
.icon(() => note.getIcon())
|
||
|
.class("launcher-button");
|
||
|
}
|
||
|
|
||
|
}
|