/** * PageNotFound component. * * Canvas state for an editor path that has no page behind it. Typography comes * from the PDS composite utilities (`pds-heading-xl`, `pds-copy-m`), which * `P1App` adopts into the document alongside the rest of pds-core. * * Landing here is a normal way to reach a page that has not been made yet, so * the panel offers to make it rather than reporting a failure. Users who cannot * create pages are only offered the way back to the home page, and are not asked * a question they cannot answer. * * This is the editor's own state — the public site's 404 is unrelated and * unaffected. */ import React from 'react'; export interface PageNotFoundProps { /** Whether the current user may create the missing page. */ canCreate?: boolean; /** Create the page. Rejects with an Error whose message is shown. */ onCreate?: () => Promise; /** Navigate to the site's home page. */ onOpenHome: () => void; 'data-testid'?: string; } export declare function PageNotFound({ canCreate, onCreate, onOpenHome, 'data-testid': dataTestId, }: PageNotFoundProps): React.ReactElement;