/* * Copyright (c) 2024 by frostime. All Rights Reserved. * @Author : frostime * @Date : 2024-03-23 21:37:33 * @FilePath : /src/libs/dialog.ts * @LastEditTime : 2024-07-19 15:34:39 * @Description : Kits about dialogs */ import { Dialog } from "siyuan"; import { type SvelteComponent } from "svelte"; export const inputDialog = (args: { title: string, placeholder?: string, defaultText?: string, confirm?: (text: string) => void, cancel?: () => void, width?: string, height?: string }) => { const dialog = new Dialog({ title: args.title, content: `