/** * Copyright (c) 2021 lingdocs.com * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ import * as T from "../types"; const persInfs: { label: string; value: T.PersonInflectionsField; }[] = [ { label: "masc. sing.", value: "mascSing", }, { label: "fem. sing.", value: "femSing", }, { label: "masc. plur.", value: "mascPlur", }, { label: "fem. plur", value: "femPlur", } ]; function PersInfsPicker(props: { transitivity: T.Transitivity, persInf: T.PersonInflectionsField, handleChange: (persInf: T.PersonInflectionsField) => void, }) { function hChange(e: any) { const newValue = e.target.value as T.PersonInflectionsField; props.handleChange(newValue); } return (
When the {props.transitivity === "intransitive" ? "subject" : "object"} is
); } export default PersInfsPicker;