import * as React from "react"; import styled from "styled-components"; import DelayedMount from "~/components/DelayedMount"; import Fade from "~/components/Fade"; import Flex from "~/components/Flex"; import PlaceholderText from "~/components/PlaceholderText"; type Props = { /** Whether to include a title placeholder. */ includeTitle?: boolean; /** Delay before mounting the component. Defaults to 500ms */ delay?: number; }; export default function PlaceholderDocument({ includeTitle, delay = 500, }: Props) { const content = ( <> ); if (includeTitle === false) { return ( {content} ); } return (
{content}
); } const Wrapper = styled(Fade)` display: block; margin: 6vh 0; padding: 12px 0; `;