import { Plus } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { Form, FormDrawer, Textarea } from '@/components/ui/form';
import { useNotifications } from '@/components/ui/notifications';
import {
useCreateComment,
createCommentInputSchema,
} from '../api/create-comment';
type CreateCommentProps = {
discussionId: string;
};
export const CreateComment = ({ discussionId }: CreateCommentProps) => {
const { addNotification } = useNotifications();
const createCommentMutation = useCreateComment({
discussionId,
mutationConfig: {
onSuccess: () => {
addNotification({
type: 'success',
title: 'Comment Created',
});
},
},
});
return (