2021-07-22 00:28:58 +03:00
|
|
|
import { useRecoilValue } from "recoil";
|
2021-07-22 02:31:01 +03:00
|
|
|
import { useRemoveService } from "../appLogic";
|
|
|
|
import { serviceIdState, wasmState } from "../appState";
|
2021-07-22 02:27:32 +03:00
|
|
|
import { TextWithLabel } from "./TextInput";
|
2021-07-22 00:28:58 +03:00
|
|
|
|
|
|
|
export const IpfsDeploymentInfo = () => {
|
|
|
|
const wasm = useRecoilValue(wasmState);
|
|
|
|
const serviceId = useRecoilValue(serviceIdState);
|
2021-07-22 02:27:32 +03:00
|
|
|
const removeService = useRemoveService();
|
2021-07-22 00:28:58 +03:00
|
|
|
|
|
|
|
return (
|
|
|
|
<>
|
2021-07-22 02:27:32 +03:00
|
|
|
<h2>
|
|
|
|
Service deployed{" "}
|
|
|
|
<button className="btn-inline" onClick={removeService}>
|
|
|
|
remove
|
|
|
|
</button>
|
|
|
|
</h2>
|
|
|
|
<div className="article">
|
|
|
|
<p>
|
|
|
|
Service deployed into Fluence network. You can observe it's service ID
|
|
|
|
as well as the CID of the wasm file used to create the service
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<TextWithLabel text={"CID:"} value={wasm} />
|
|
|
|
<TextWithLabel text={"Service ID:"} value={serviceId} />
|
2021-07-22 00:28:58 +03:00
|
|
|
</>
|
|
|
|
);
|
|
|
|
};
|