Function useFilesView

Represents a reusable component for displaying and managing files.

  • Type Parameters

    • Payload extends unknown = any

      The payload type (optional)

    Parameters

    • params: IParams<Payload>

      The parameters for the component.

    Returns {
        pickFiles: (() => void);
        render: (() => Element);
    }

    • An object with the render function for the component and the pickFiles function to open the file picker.
    • pickFiles: (() => void)
        • (): void
        • Returns void

    • render: (() => Element)
        • (): Element
        • Renders the modal with a files view and an optional submit action button.

          Returns Element

          The rendered modal component.