moderator-toolbox-nxg-for-reddit / modules/modactions/components/ItemHistoryPopup

modules/modactions/components/ItemHistoryPopup

Functions

openItemHistory()

openItemHistory(target): () => void

Defined in: extension/data/modules/modactions/components/ItemHistoryPopup.tsx:80

Opens a modal popup listing the recent mod-log actions taken on a single item. Deduplicated per item, so re-clicking the button reveals the existing popup instead of stacking a new one.

Parameters

target

Identifies the item: its subreddit and fullname.

itemId

string

subreddit

string

Returns

A cleanup that closes the popup.

() => void