mirror of
https://github.com/khairul169/vaulterm.git
synced 2025-06-18 01:29:37 +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);
|
||
|
};
|