import React from "react";
import { BaseDateField } from "./BaseDateField";

interface EffectiveDatePickerProps {
  effectivedate: string;
  seteffectivedate: (value: string) => void;
  formatDateToString: (date: Date) => string;
}

const EffectiveDatePicker: React.FC<EffectiveDatePickerProps> = ({
  effectivedate,
  seteffectivedate,
  formatDateToString,
}) => {
  return (
    <BaseDateField
      label="Effective Date"
      value={effectivedate}
      setValue={seteffectivedate}
      formatDateToString={formatDateToString}
      enableHoverEffects={true}
    />
  );
};

export default EffectiveDatePicker;
