UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

18 lines (17 loc) 1.09 kB
import React, { ReactNode } from "react"; import { GeoprocessingRequestParams } from "../types/service.js"; export interface ResultsCardProps<T> { functionName: string; children: (results: T) => ReactNode; skeleton?: ReactNode; title?: string | ReactNode; titleStyle?: React.CSSProperties; style?: object; /** Assumes caller will provide card in children to use results (e.g. ToolbarCard with DataDownload). Shows a simple card until loading complete */ useChildCard?: boolean; /** Additional runtime parameters from report client for geoprocessing function. */ extraParams?: GeoprocessingRequestParams; } export declare const EstimateLabel: import("styled-components/dist/types.js").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string; export declare function ResultsCard<T>({ functionName, skeleton, children, title, titleStyle, style, useChildCard, extraParams, }: ResultsCardProps<T>): React.JSX.Element; export default ResultsCard;