hunk.code_window:     if (isUserChange) {
         const { onDateSelected } = this.props;
         const date = selectedDate ? selectedDate.toISOString() : "";
         this.setState({
           selectedDate: date,
         });
         onDateSelected(date);
       }
     };
   }
  
hunk.labels: keep replace replace replace replace replace keep keep keep keep keep
hunk.file_path: app/client/src/widgets/DatePickerWidget2/component/index.tsx
hunk.type: replace
file: import copy from "copy-to-clipboard";
  import AppsmithConsole from "utils/AppsmithConsole";
  import {
    ActionTriggerType,
    CopyToClipboardDescription,
  } from "entities/DataTree/actionTriggers";
  import { ActionValidationError } from "sagas/ActionExecution/errorUtils";
  import { getType, Types } from "utils/TypeHelpers";
  
  export default function copySaga(
    payload: CopyToClipboardDescription["payload"],
  ) {
    if (typeof payload.data !== "string") {
      throw new ActionValidationError(
        ActionTriggerType.COPY_TO_CLIPBOARD,
        "data",
        Types.STRING,
        getType(payload.data),
      );
    }
    const result = copy(payload.data, payload.options);
    if (result) {
      AppsmithConsole.info({
        text: `copyToClipboard('${payload.data}') was triggered`,
      });
    }
  }
  