"use client";

import { ResponsiveModal } from "@/components/responsive-modal";

import { CreateBoardForm } from "./create-board-form";
import { useCreateBoardModal } from "../hooks/use-create-board-modal";

export const CreateBoardModal = () => {
  const { isOpen, setIsOpen, close } = useCreateBoardModal();

  return (
    <ResponsiveModal open={isOpen} onOpenChange={setIsOpen}>
      <CreateBoardForm onCancel={close} />
    </ResponsiveModal>
  );
}; 