6 lines
279 B
TypeScript
6 lines
279 B
TypeScript
export default function useTextValueMapping({ valueTexts, onTextChange, }: {
|
|
/** Must useMemo, to assume that `valueTexts` only match on the first change */
|
|
valueTexts: string[];
|
|
onTextChange: (text: string) => void;
|
|
}): [string, (text: string) => void, () => void];
|