import { useState } from 'react'
import { DocumateDialog as Dialog } from './dialog'
import './styles/button.scoped.scss'
interface ButtonProps {
endpoint: string
buttonLabel?: string
placeholder?: string
predefinedQuestions?: string[]
}
export const Button = ({
endpoint = '',
buttonLabel = 'Ask AI',
placeholder = 'Ask a question...',
predefinedQuestions = [],
...props
}: ButtonProps) => {
const [isOpen, setOpen] = useState(false)
return (
<>