import { SnapshotContext } from '../context' ; import { getProposalIdentifier } from './helpers' ; import { Snapshot } from './Snapshot' ; import { LoadingFailCard } from './LoadingFailCard' ; import { useRetry } from './hooks/useRetry' ; export interface PostInspectorProps { url : string ; } export function PostInspector ( props ) { const identifier = getProposalIdentifier ( props . url ) ; const retry = useRetry ( ) ; return ( < SnapshotContext . Provider value = { identifier } > < LoadingFailCard title = "" isFullPluginDown retry = { retry } > < Snapshot /> < /LoadingFailCard> < /SnapshotContext.Provider>); }