import React, { useState, useEffect } from 'react'; import { Text, Box } from 'ink'; import SyntaxHighlight from 'ink-syntax-highlight'; import { lookpath } from 'lookpath'; type InfoProps = { path: string; }; const Info: React.FC = ({ path }) => { const [bun, setBun] = useState(true); const [aws, setAws] = useState(true); useEffect(() => { const checkForBinaries = async () => { setBun(!!(await lookpath('bun'))); setAws(!!(await lookpath('aws'))); }; checkForBinaries(); }, []); return ( Success! Your new Learn Card HTTP Bridge is ready to deploy! {aws ? ( To deploy, run the following commands: ) : ( <> It looks like you might not have serverless/AWS set up yet! Please review the instructions at https://www.serverless.com/framework/docs/tutorial if you have any issues deploying the Learn Card HTTP Bridge! After you're all set up, run the following commands to deploy the Learn Card HTTP Bridge! )} {!bun && ( {'$ '} )} {'$ '} {'$ '} {'$ '} ); }; export default Info;