// Copyright (C) The Arvados Authors. All rights reserved.
//
// SPDX-License-Identifier: AGPL-3.0
import React from 'react';
import { memoize } from 'lodash/fp';
import { BooleanCommandInputParameter } from 'models/workflow';
import { Field } from 'redux-form';
import { Switch } from '@material-ui/core';
import { GenericInputProps, GenericInput } from './generic-input';
export interface BooleanInputProps {
input: BooleanCommandInputParameter;
}
export const BooleanInput = ({ input }: BooleanInputProps) =>
;
const normalize = (_: any, prevValue: boolean) => !prevValue;
const BooleanInputComponent = (props: GenericInputProps) =>
;
const Input = ({ input, commandInput }: GenericInputProps) =>
;
const handleChange = memoize(
(onChange: (value: string) => void, value: string) => () => onChange(value)
);