E
Size: a a a
E
Дп
E
Дп
АА
F
F
SL
enum ModalType {
Close = 'close',
Open = 'open'
// Add type for modal here
}
const modals = {
close: closeModalPattern,
open: openModalPattern,
// Add new modals here
};SL
SL
type ModalType = "close" | "open";
const modals: Record<ModalType, PatternFunc> = {
close: closeModalPattern,
open: openModalPattern,
// Add new modals here
};
IT
IT
type ModalType = "close" | "open";
const modals: Record<ModalType, PatternFunc> = {
close: closeModalPattern,
open: openModalPattern,
// Add new modals here
};
SL
IT
IT
N

FL

F

VS
А_