"use client"

import { useState } from "react"
import { Plus } from "lucide-react"
import { Button } from "@/shared/components/ui/button"
import { CreateQuestionDialog } from "./create-question-dialog"

export function CreateQuestionButton() {
  const [open, setOpen] = useState(false)

  return (
    <>
      <Button onClick={() => setOpen(true)}>
        <Plus className="mr-2 h-4 w-4" />
        Add Question
      </Button>
      <CreateQuestionDialog open={open} onOpenChange={setOpen} />
    </>
  )
}
