import { faArrowUpRightFromSquare, faBookOpen } from "@fortawesome/free-solid-svg-icons"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { APP_CONNECTION_MAP } from "@app/helpers/appConnections"; import { AppConnection } from "@app/hooks/api/appConnections/enums"; type Props = { app: AppConnection; isConnected: boolean; onBack?: () => void; }; export const AppConnectionHeader = ({ app, isConnected, onBack }: Props) => { const appDetails = APP_CONNECTION_MAP[app]; return (
{isConnected ? `${appDetails.name} Connection` : `Connect to ${appDetails.name}`}