opds-web-client
Version:
22 lines (21 loc) • 691 B
TypeScript
import * as React from "react";
import { BasicAuthCallback } from "../interfaces";
export interface BasicAuthFormProps {
hide: () => void;
saveCredentials: (credentials: string) => void;
callback?: BasicAuthCallback;
title?: string;
loginLabel?: string;
passwordLabel?: string;
error?: string;
}
export default class BasicAuthForm extends React.Component<BasicAuthFormProps, any> {
constructor(props: any);
render(): JSX.Element;
componentWillReceiveProps(nextProps: any): void;
loginLabel(): string;
passwordLabel(): string;
validate(): boolean;
submit(event: any): void;
generateCredentials(login: any, password: any): string;
}