@oneblink/apps-react
    Preparing search index...

    Variable DownloadableFiles

    DownloadableFiles: MemoExoticComponent<
        (
            __namedParameters: {
                divider?: boolean;
                formSubmissionResult: FormSubmissionResult;
                layout?: LayoutType;
            },
        ) => Element
        | null,
    >

    Component for rendering post-submission downloadable files such as PDFs and attachments. The only thing required is the formSubmissionResult.

    It is also recommended to import the css from this library as well.

    import { DownloadableFiles } from '@oneblink/apps-react'
    import '@oneblink/apps-react/dist/styles.css'
    import React from 'react'
    import ReactDOM from 'react-dom'
    import { DownloadableFiles } from '@oneblink/apps-react'
    import '@oneblink/apps-react/dist/styles.css'

    function SubmissionContainer() {

    const [state, setState] = useState(null)

    const handleSubmit = React.useCallback(async () => {
    ...
    setState(result)
    }, [])

    return (
    <div>
    ...
    {state && (
    <DownloadableFiles formSubmissionResult={state} />
    )}
    </div>
    )
    }

    function App() {
    return (
    <IsOfflineContextProvider>
    <SubmissionContainer />
    </IsOfflineContextProvider>
    )
    }

    const root = document.getElementById('root')
    if (root) {
    ReactDOM.render(<App />, root)
    }