import { Trash } from 'lucide-react';
import { Button } from '@/components/ui/button';
import { ConfirmationDialog } from '@/components/ui/dialog';
import { useNotifications } from '@/components/ui/notifications';
import { useDeleteComment } from '../api/delete-comment';
type DeleteCommentProps = {
id: string;
discussionId: string;
};
export const DeleteComment = ({ id, discussionId }: DeleteCommentProps) => {
const { addNotification } = useNotifications();
const deleteCommentMutation = useDeleteComment({
discussionId,
mutationConfig: {
onSuccess: () => {
addNotification({
type: 'success',
title: 'Comment Deleted',
});
},
},
});
return (
}
>
Delete Comment
}
confirmButton={
}
/>
);
};