import { inject } from '@angular/core';
import { RangeDatepicker } from './range-datepicker';

/**
 * Injects an instance of RangeDatepicker using Angular's dependency injection.
 *
 * This function simplifies accessing the RangeDatepicker instance across the application.
 *
 * @returns {RangeDatepicker} An instance of the RangeDatepicker.
 */
export function injectDatepicker(): RangeDatepicker {
  return inject(RangeDatepicker);
}
