ActionButtonProps: {
    actionType: "edit" | "archive" | "delete";
    handleAction: ((id, e?) => void);
    icons: {
        [key: string]: ReactNode;
    };
    itemId: any;
    visible: boolean;
}

Props for the action button.

Type declaration

  • actionType: "edit" | "archive" | "delete"

    The type of action the button performs.

  • handleAction: ((id, e?) => void)
      • (id, e?): void
      • Callback function that handles the button action.

        Parameters

        • id: any

          The ID of the item.

        • Optional e: any

          The event object.

        Returns void

  • icons: {
        [key: string]: ReactNode;
    }

    An object mapping action types to their associated icons.

    • [key: string]: ReactNode
  • itemId: any

    The ID of the item the action button is associated with.

  • visible: boolean

    Determines if the button is visible or not.

Generated using TypeDoc