import * as React from 'react';
import { BlueRain, BlueRainConsumer } from '@blueeast/bluerain-os';
import AppGrid from '../../components/AppGrid';

export interface Props {
	match?: {
		isExact?: boolean,
		params?: object,
		path?: string,
		url?: string
	}
}

export class LauncherPage extends React.PureComponent<Props, {}> {

	render() {
		return (
			<BlueRainConsumer>
				{(BR: BlueRain) => {
					return (
						<BR.Components.Wallpaper>
							<BR.Components.Page>
								<BR.Components.LauncherAppBar />
								<AppGrid />
							</BR.Components.Page>
						</BR.Components.Wallpaper>
					);
				}}
			</BlueRainConsumer>
		);
	}
}
