hunk.code_window:     const config = {
         type: ValidationTypes.DATE_ISO_STRING,
         params: {
           required: false,
           default: defaultDate,
         },
       };
  
hunk.labels: keep keep keep keep keep replace keep keep keep
hunk.after_edit:         default: "",
  
hunk.file_path: app/client/src/workers/validations.test.ts
hunk.type: replace
file: import { Comment } from "entities/Comments/CommentsInterfaces";
  import { ReduxAction } from "constants/ReduxActionConstants";
  import { CommentsReduxState } from "./interfaces";
  import { deleteCommentFromState } from "./common";
  
  const handleDeleteCommentEvent = (
    state: CommentsReduxState,
    action: ReduxAction<Comment>,
  ) => {
    const { _id: commentId, threadId } = action.payload;
  
    const updatedState = deleteCommentFromState(state, commentId, threadId);
  
    return { ...updatedState };
  };
  
  export default handleDeleteCommentEvent;
  