2024-07-14 17:33:01 +02:00
|
|
|
import React from "react";
|
|
|
|
import {Modal, useModal} from "../src/Components/Modals/Modals";
|
|
|
|
import {ModalType} from "../src/Components/Modals/ModalsTypes";
|
2024-07-14 18:22:13 +02:00
|
|
|
import {Buttons} from "../src/Components/Buttons/Buttons";
|
2024-07-14 17:33:01 +02:00
|
|
|
|
|
|
|
export function DemoModal({type}: { type: ModalType; })
|
|
|
|
{
|
|
|
|
const {close} = useModal();
|
|
|
|
|
|
|
|
return (
|
|
|
|
<Modal type={type} title={"Modal title"}>
|
|
|
|
Modal test content
|
|
|
|
|
2024-07-14 18:22:13 +02:00
|
|
|
<Buttons>
|
|
|
|
<button onClick={close}>OK</button>
|
|
|
|
</Buttons>
|
2024-07-14 17:33:01 +02:00
|
|
|
</Modal>
|
|
|
|
);
|
|
|
|
}
|