"use client";

import React, { useState } from "react";
import Modal from "../components/Modal/Modal"; // Adjust this path as needed

export default function Page() {
  const [isModalOpen, setIsModalOpen] = useState(false);

  return (
    <>
      <button onClick={() => setIsModalOpen(true)}>
        Open Modal
      </button>

      <Modal
        open={isModalOpen}
        onCancel={() => setIsModalOpen(false)}
        title="Simple Title"
      >
        <p>This is the modal content.</p>
      </Modal>
    </>
  );
}
