DocSpace-client/packages/shared/components/cron/sub-components/Hours.tsx

19 lines
395 B
TypeScript
Raw Normal View History

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
unit={unit}
2023-08-16 12:04:58 +00:00
value={hours}
setValue={setHours}
dropDownMaxHeight={300}
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";