import React from 'react';

export interface RGInputFieldProps {
  label: string;
  callToAction: any;
  value: string;
  setValue: any;
}

export default function RGInputField(props: RGInputFieldProps) {
  return (
    <div
      className="RGInputField"
    >
      <h5>{props.label}</h5>
      <input
        placeholder={props.callToAction}
        type="url"
        name="Asana Link"
        required
        autoComplete="off"
        value={props.value}
        onChange={(e) => props.setValue(e.target.value)}
      />
    </div>
  );
}
