// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 import React from 'react'; // eslint-disable-next-line import/no-extraneous-dependencies import {Classes, Button, FormGroup, Label} from '@blueprintjs/core'; type InputDialogProps = { appName: string; envName: string; onPublish: (appName: string, envName: string) => void; onAppNameChange: (appName: string) => void; onEnvNameChange: (envName: string) => void; onClose: () => void; }; /** * The dialog to show the input when publishing to Amplify. * @param props The props passed in from the parent component. * @returns the InputDialog component. */ export function InputDialog(props: InputDialogProps) { const { appName, envName, onPublish, onAppNameChange, onEnvNameChange, onClose, } = props; return ( <>