Zwei Rueckrufe hintereinander, wo der Ausloeser schon einen hatte.
(first: ((value: T) => void) | undefined, second: (value: T) => void)
| 153 | |
| 154 | /** Zwei Rueckrufe hintereinander, wo der Ausloeser schon einen hatte. */ |
| 155 | function both<T>(first: ((value: T) => void) | undefined, second: (value: T) => void) { |
| 156 | return (value: T): void => { |
| 157 | first?.(value); |
| 158 | second(value); |
| 159 | }; |
| 160 | } |
| 161 | |
| 162 | export default function Hint(props: HintProps): JSX.Element { |
| 163 | const text = (props.text ?? '').replace(/\s+/g, ' ').trim(); |