Custom hook for displaying a feature view modal.

  • Parameters

    • params: IParams

      The parameters for the feature view modal.

      • data

        The feature data.

      • title

        The title of the modal.

      • features

        The features to display.

      • expandAll

        Whether to expand all feature sections.

      • readonly

        Whether the modal is readonly.

      • fullScreen

        Whether the modal should be displayed in full screen.

      • fallback

        The fallback react element to display if modal content is unavailable.

      • onLoadStart

        Callback function to be called when modal starts to load.

      • onLoadEnd

        Callback function to be called when modal finishes loading.

      • onSubmit

        Callback function to be called when modal is submitted.

      • onChange

        Callback function to be called when modal value changes.

      • submitLabel

        The label for the submit button.

      • withActionButton

        Whether to include an action button in the modal.

      • withStaticAction

        Whether to include a static action in the modal.

    Returns {
        open: boolean;
        pickData: (param?: any) => void;
        render: () => Element;
        setOpen: any;
    }

    • The modal hook object.