import React from "react"; import styles from "../App.module.css"; import cx from "../utils/cx"; import { GenericArgumentConfig } from "../models/insightsConfig"; import { UserInputField } from "../models/typeHelpers"; interface ArgumentProps { name: string; handleInputChange: React.ChangeEventHandler; } function NumberArgument(props: ArgumentProps & GenericArgumentConfig) { var min = props.limit[0]; var max = props.limit[1]; return (
{props.name}:
); } function EnumArgument(props: ArgumentProps & GenericArgumentConfig) { const options = props.limit.map((item, key) => ( )); return (
{props.name}:
); } function StringArgument(props: ArgumentProps & { value: string }) { return (
{props.name}:
); } export { StringArgument, EnumArgument, NumberArgument };