mirror of
https://github.com/fluencelabs/examples
synced 2025-05-21 07:01:20 +00:00
30 lines
897 B
TypeScript
30 lines
897 B
TypeScript
import { useRecoilValue } from "recoil";
|
|
import { useRemoveService } from "../appLogic";
|
|
import { serviceIdState, wasmState } from "../appState";
|
|
import { TextWithLabel } from "./TextInput";
|
|
|
|
export const IpfsDeploymentInfo = () => {
|
|
const wasm = useRecoilValue(wasmState);
|
|
const serviceId = useRecoilValue(serviceIdState);
|
|
const removeService = useRemoveService();
|
|
|
|
return (
|
|
<>
|
|
<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} />
|
|
</>
|
|
);
|
|
};
|