import * as React from 'react'; import { submissionService } from '../../apps'; import { LayoutType } from './LayoutProvider'; declare function DownloadableFiles({ formSubmissionResult, divider, layout, }: { /** The form submission with the pdf and/or attachments config on it. */ formSubmissionResult: submissionService.FormSubmissionResult; /** Whether to render a divider above the content. */ divider?: boolean; /** * The layout to use for the downloadable files. Options are `GRID` and * `LIST`. Defaults to `GRID`. `GRID` will render files next to each other at * some screen sizes. `LIST` will always render each file on a new line. */ layout?: LayoutType; }): import("react/jsx-runtime").JSX.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. * * ```js * import { DownloadableFiles } from '@oneblink/apps-react' * import '@oneblink/apps-react/dist/styles.css' * ``` * * #### Example * * ```tsx * 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 ( *
* ... * {state && ( * * )} *
* ) * } * * function App() { * return ( * * * * ) * } * * const root = document.getElementById('root') * if (root) { * ReactDOM.render(, root) * } * ``` * * @param props * @returns * @group Components */ declare const _default: React.MemoExoticComponent; export default _default;