// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: MIT-0
import { Container, Header, Input, Link } from "@awsui/components-react";
import { BaseNavigationDetail } from "@awsui/components-react/internal/events";
import React, { FC } from "react";
interface TitleComponentProps {
setExperienceTitle: (value: string) => void;
setToolsContent: (tools: any) => void;
}
const toolsContent = {
title: "Experience Title",
content: (
This title will be used to identify the contact flows and the resources that will be created in Amazon Connect.
),
links: [
{
href: "https://docs.aws.amazon.com/connect/latest/adminguide/connect-contact-flows.html",
text: "About Contact Flows",
},
],
};
const TitleComponent: FC = (props) => {
const [title, setTitle] = React.useState("");
const setExperienceTitle = (value: string) => {
setTitle(value);
props.setExperienceTitle(value);
};
const setToolsContent = (event: CustomEvent) => {
event.preventDefault();
props.setToolsContent(toolsContent);
};
return (
Experience name{" "}
{
setToolsContent(event);
}}
>
Info
}
>
setExperienceTitle(detail.value)}
value={title}
placeholder="Enter a name for your experience"
/>
);
};
export default TitleComponent;