import React, {ChangeEvent} from "react";

interface DatePickerProps {
    date: string;
    setDate: (e: ChangeEvent<HTMLInputElement>) => void;
}

export default function DatePicker(
    {
        setDate,
        date
    }: DatePickerProps) {
    return (
        <input
            type="date"
            value={date}
            onChange={setDate}
            className="input-base"
        />
    )
}
