import React from "react"; import {Modal, useModal} from "../src/Components/Modals/Modals"; import {ModalType} from "../src/Components/Modals/ModalsTypes"; export function DemoModal({type}: { type: ModalType; }) { const {close} = useModal(); return ( Modal test content ); }