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¶
Returns¶
Element | null
Interfaces¶
FlatListModActionsProps¶
Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:44
Props for the inline mod-action row.
Properties¶
initialLocked?¶
optionalinitialLocked?:boolean
Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:56
Initial locked state, read best-effort from the thing’s locked attribute.
initialNsfw?¶
optionalinitialNsfw?:boolean
Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:54
Initial NSFW state, read from the post’s nsfw attribute (posts only).
initialStickied?¶
optionalinitialStickied?: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).
link?¶
optionallink?:string
Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:60
Relative permalink for the item, recorded on captured proposals for display.
subreddit¶
subreddit:
string
Defined in: extension/data/modules/modactions/components/FlatListModActions.tsx:46
Subreddit the thing belongs to (no r/ prefix).