import React from "react";
import { JalaliDayPicker } from "@/components/jalali-day-picker/jalali-day-picker";

interface DateSelectProps {
  value?: Date;
  onChange: (value?: Date) => void;
}

export const DateSelect = ({ value, onChange }: DateSelectProps) => (
  <div className="w-full">
    <JalaliDayPicker
      selected={value}
      onSelect={onChange}
      disableBefore={new Date()}
    />
  </div>
);
