2023-09-20 08:30:37 +00:00
|
|
|
import React, { memo } from "react";
|
2023-12-21 12:11:27 +00:00
|
|
|
import { Select } from "./Select";
|
2023-08-16 12:04:58 +00:00
|
|
|
|
2023-12-21 12:11:27 +00:00
|
|
|
import type { HoursProps } from "../Cron.types";
|
2023-09-07 11:40:45 +00:00
|
|
|
|
2023-12-21 12:11:27 +00:00
|
|
|
export const Hours = memo(({ hours, setHours, unit, t }: HoursProps) => {
|
2023-08-16 12:04:58 +00:00
|
|
|
return (
|
|
|
|
<Select
|
2024-01-24 13:39:37 +00:00
|
|
|
unit={unit}
|
2023-08-16 12:04:58 +00:00
|
|
|
value={hours}
|
|
|
|
setValue={setHours}
|
|
|
|
dropDownMaxHeight={300}
|
2024-01-24 13:39:37 +00:00
|
|
|
placeholder={t("EveryHour")}
|
2023-08-16 12:04:58 +00:00
|
|
|
/>
|
|
|
|
);
|
2023-12-21 12:11:27 +00:00
|
|
|
});
|
2023-08-16 12:04:58 +00:00
|
|
|
|
2023-12-21 12:11:27 +00:00
|
|
|
Hours.displayName = "Hours";
|