blob: 028b9a3ded6f07169a4b13d72c9feec06e4fd8e1 [file] [log] [blame]
import CssSelectorNodeWatcherScriptHandler from '../../../../common/architecture/scripts/nodeWatcher/handlers/CssSelectorNodeWatcherScriptHandler';
import { NodeMutation } from '../../../../presentation/nodeWatcher/NodeWatcherHandler';
import { CCExtraInfoMainOptions } from '../../scripts/ccExtraInfoMain.script';
/**
* Inject extra info to threads in the thread list.
*/
export default class CCExtraInfoThreadQuestionHandler extends CssSelectorNodeWatcherScriptHandler<CCExtraInfoMainOptions> {
cssSelector = 'sc-tailwind-thread-question-question-card sc-tailwind-thread-question-state-chips';
onMutatedNode({ node }: NodeMutation) {
this.options.extraInfo.injectAtQuestionIfEnabled(node);
}
}