import { Alert, Box } from "@awsui/components-react"; import React from "react"; import { RecommendedAction } from "../../models/project"; interface Props { recomendedAction: RecommendedAction; } export const RecommendationComment: React.FC = React.memo(({ recomendedAction }) => { const [visible, setVisible] = React.useState(true); return ( setVisible(false)} visible={visible} type="info" header="Porting action"> When you port this project, Porting Assistant for .NET will make the following changes to your source code. {recomendedAction.description} {`The recommendation will work on ${recomendedAction?.targetCPU.slice(0, -1).join(", ")} and ${ recomendedAction.targetCPU.slice(-1)[0] }.`} ); });