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

modules/modactions/components/FlatListModActions

Functions

FlatListModActions()

FlatListModActions(__namedParameters): Element | null

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:136

Renders the inline mod-action buttons for a Shreddit post/comment when the viewer is a mod.

Parameters

__namedParameters

FlatListModActionsProps

Returns

Element | null

Interfaces

FlatListModActionsProps

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:44

Props for the inline mod-action row.

Properties

author?

optional author?: string

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:62

Comment author (comments only); Distinguish is only offered on the viewer’s own comments.

initialLocked?

optional initialLocked?: boolean

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:56

Initial locked state, read best-effort from the thing’s locked attribute.

initialNsfw?

optional initialNsfw?: boolean

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:54

Initial NSFW state, read from the post’s nsfw attribute (posts only).

initialStickied?

optional initialStickied?: boolean

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:58

Initial stickied state, read best-effort from the post’s stickied/pinned attribute (posts only).

isRemoved

isRemoved: boolean

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:52

Whether the thing is already removed (hides the Spam button).

itemId

itemId: string

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:48

Fullname of the post/comment (t3_.../t1_...).

itemKind

itemKind: "post" | "comment"

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:50

Whether the thing is a post or a comment (drives which actions show).

subreddit

subreddit: string

Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:46

Subreddit the thing belongs to (no r/ prefix).