@dorgtech/daocomponents
Version:
Componentizing [DAOstack's client library](https://github.com/daostack/client), enabling easier React application integration. The hope is to be able to turn any app into a DAO enabled dApp by adding ~2 components.
33 lines (32 loc) • 1.77 kB
TypeScript
import * as React from "react";
import { Component, ComponentLogs, BaseProps } from "../runtime";
import { ArcConfig } from "../protocol";
import { Reputation as Entity, IReputationState as Data } from "@daostack/client";
declare type Code = {};
interface RequiredProps extends BaseProps {
address?: string;
}
interface InferredProps {
arcConfig: ArcConfig | undefined;
}
declare type Props = RequiredProps & InferredProps;
declare class ArcReputation extends Component<Props, Entity, Data, Code> {
protected createEntity(): Entity;
static readonly Entity: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
static readonly Data: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
static readonly Code: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
static readonly Logs: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
protected static _EntityContext: React.Context<{}>;
protected static _DataContext: React.Context<{}>;
protected static _CodeContext: React.Context<{}>;
protected static _LogsContext: React.Context<{}>;
}
declare class Reputation extends React.Component<RequiredProps> {
render(): JSX.Element;
static readonly Entity: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
static readonly Data: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
static readonly Code: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
static readonly Logs: (props: import("../runtime/ContextFeed").Props) => JSX.Element;
}
export default Reputation;
export { ArcReputation, Reputation, Props as ReputationProps, Entity as ReputationEntity, Data as ReputationData, Code as ReputationCode, ComponentLogs };