Agama Installer
    Preparing search index...
    • A component for building a Question actions, using the defaultAction as the Popup.PrimaryAction

      NOTE: We use the Popup component for displaying a question, wrapping its actions inside a Popup.Actions component, which must be an immediate child of Popup. That's why we use React.Fragment (aka <>) here for wrapping the actions instead of directly using the Popup.Actions.

      Parameters

      • props: {
            actionCallback: (action: string) => void;
            actions: string[];
            conditions?: { disable?: { [key: string]: boolean } };
            defaultAction?: string;
        }

        component props

        • actionCallback: (action: string) => void

          the function to call when the user clicks on the action

        • actions: string[]

          the actions show

        • Optionalconditions?: { disable?: { [key: string]: boolean } }
        • OptionaldefaultAction?: string

          the action to show as primary

      Returns ReactNode