UNPKG

opds-web-client

Version:
24 lines (23 loc) 818 B
import * as React from "react"; import "../stylesheets/collection.scss"; import "../stylesheets/subtle_list.scss"; import "../stylesheets/visually_hidden.scss"; import { CollectionData, FetchErrorData } from "../interfaces"; export interface CollectionProps extends React.HTMLProps<Collection> { collection: CollectionData; isFetching?: boolean; isFetchingPage?: boolean; error?: FetchErrorData; fetchPage?: (url: string) => Promise<any>; } export default class Collection extends React.Component<CollectionProps, any> { constructor(props: any); render(): JSX.Element; componentWillReceiveProps(nextProps: any): void; componentDidMount(): void; componentWillUnmount(): void; canFetch(): string; fetch(): void; handleScrollOrResize(): void; isEmpty(): boolean; }