modal dialog component

This commit is contained in:
Michael Dausmann
2023-05-14 00:31:47 +10:00
parent 0d2db65f74
commit 17e3166f13
3 changed files with 72 additions and 1 deletions

4
components/modal.type.ts Normal file
View File

@@ -0,0 +1,4 @@
import { Modal } from '#components';
// seems pretty stoopid that I need to do this in a seperate file but it seems to work
export type ModalType = typeof Modal extends new () => infer T ? T : never;