mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-04-28 16:49:39 +07:00
15 lines
313 B
TypeScript
15 lines
313 B
TypeScript
import { createDisclosure } from "@/lib/utils";
|
|
|
|
export type DialogData = {
|
|
title: string;
|
|
description?: string;
|
|
onConfirm?: () => void;
|
|
onCancel?: () => void;
|
|
};
|
|
|
|
export const dialogStore = createDisclosure<DialogData>();
|
|
|
|
export const showDialog = (data: DialogData) => {
|
|
dialogStore.onOpen(data);
|
|
};
|