This repository has been archived on 2022-08-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
outline/app/scenes/Document/components/Loading.js

23 lines
617 B
JavaScript

// @flow
import * as React from "react";
import type { Location } from "react-router-dom";
import Container from "./Container";
import LoadingPlaceholder from "components/LoadingPlaceholder";
import CenteredContent from "components/CenteredContent";
import PageTitle from "components/PageTitle";
type Props = {|
location: Location,
|};
export default function Loading({ location }: Props) {
return (
<Container column auto>
<PageTitle title={location.state ? location.state.title : "Untitled"} />
<CenteredContent>
<LoadingPlaceholder />
</CenteredContent>
</Container>
);
}