shadcn dialog and form

guys has anyone here tried to build a dialog with a form inside it ?
if so what are the thoughts on it and how did it work. im having issues with the submit button and clicking it.
im getting this error
Error: React.Children.only expected to receive a single React element child.
Was this page helpful?