Files
klz-cables.com/.pnpm-store/v10/files/91/f5bfc4c342cbc50b81cf9e22c5728114ace755462e6ac900b4701c8faf061f3814744ff5accbe8d4efa2fc96c8510a80bb1c52fde4be505397b11486a4603c
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

39 lines
1.3 KiB
Plaintext

import React, { Component } from "react";
interface InputTimeProps {
onChange?: (date: Date) => void;
date?: Date;
timeString?: string;
timeInputLabel?: string;
customTimeInput?: React.ReactElement;
}
interface InputTimeState {
time?: string;
}
/**
* `InputTime` is a React component that manages time input.
*
* @component
* @example
* <InputTime timeString="12:00" />
*
* @param props - The properties that define the `InputTime` component.
* @param props.onChange - Function that is called when the date changes.
* @param props.date - The initial date value.
* @param props.timeString - The initial time string value.
* @param props.timeInputLabel - The label for the time input.
* @param props.customTimeInput - An optional custom time input element.
*
* @returns The `InputTime` component.
*/
export default class InputTime extends Component<InputTimeProps, InputTimeState> {
inputRef: React.RefObject<HTMLInputElement>;
constructor(props: InputTimeProps);
static getDerivedStateFromProps(props: InputTimeProps, state: InputTimeState): {
time: string | undefined;
} | null;
onTimeChange: (time: InputTimeState["time"]) => void;
renderTimeInput: () => React.JSX.Element;
render(): React.JSX.Element;
}
export {};