import {Col, Container, Row, Spinner} from "react-bootstrap"; import {Configuration, DefaultApi} from "../service/openapi"; import {useEffect, useState} from "react"; export default function Continuation(props) { let [continuation, setContinuation] = useState("") let [computing, setComputing] = useState(false) const configuration = new Configuration({ basePath: 'https://api.alas.friedl.net' }); const api = new DefaultApi(configuration); const fetchContinuation = async () => { try { setComputing(true) let resp = await api.getContinuationDialogContinuationGet({text: props.text}); setComputing(false) return resp; } catch (error) { console.error(error); } } useEffect(() => { fetchContinuation() .then(r => setContinuation(r)); }, [props]) return (

Effective Response

{computing ? : continuation && continuation !== "\"I\"" && continuation !== '""' ?

{continuation}

use at own risk
:

Does not compute.

}
); }