import * as React from "react";
import { MainHeading, Body, BodySection } from "../styles";
import { TxHash } from "@joincivil/core";
import { PublishButton } from "./PublishButton";
import { ArchiveOptions } from "./BlockchainPublishPanel";
import { ArchiveControls } from "./ArchiveControls";
import { urls } from "../../constants";
export interface PublishPanelFirstTimeState {
archiveSelected: boolean;
ipfsSelected: boolean;
ethTransaction: boolean;
estimate?: number;
}
export interface PublishPanelFirstTimeProps {
revisionUrl: string;
revisionJsonHash: string;
revisionJson: any;
civilContentID?: number;
currentPostLastRevisionId?: number;
txHash?: TxHash;
disabled?: boolean;
walletReady?: boolean;
publishContent?(
contentId: number,
revisionId: number,
revisionJson: any,
txHash: TxHash,
ipfs: string,
archive: ArchiveOptions,
): Promise
This publishes a permanent record of your post to the Civil network by putting a link and record of the post
onto{" "}
IPFS
{" "}
and the{" "}
Ethereum Blockchain
. The index points back to your site where the story is hosted on your servers. Indexing provides proof that
the story hasn't changed since its last publish date.