import * as React from 'react'; import { Grid, Image, Row } from 'react-bootstrap'; import { Property } from '../../../WebRx'; import { Loading } from '../Loading/Loading'; export interface SplashProps { header: any; logo?: string; text?: string; progress?: Property | number; fluid?: boolean; } export interface SplashComponentProps extends React.HTMLProps, SplashProps {} export class Splash extends React.Component { public static displayName = 'Splash'; static defaultProps: Partial = { fluid: false, }; render() { const { className, props, rest } = this.restProps(x => { const { header, logo, text, progress, fluid } = x; return { header, logo, text, progress, fluid }; }); return (
{this.renderLogo()} {props.header}
); } private renderLogo() { return this.wxr.renderConditional(this.props.logo != null, () => ( )); } }