blob: 2a694c5fbb158a30a99138f3dce8c9c90ef33c4e [file] [log] [blame]
import CssSelectorNodeWatcherHandler from '../../../../../infrastructure/presentation/nodeWatcher/handlers/CssSelectorHandler.adapter';
import { NodeMutation } from '../../../../../presentation/nodeWatcher/NodeWatcherHandler';
import ExtraInfo from '../../../core';
/** Inject extra info in questions. */
export default class CCExtraInfoThreadQuestionHandler extends CssSelectorNodeWatcherHandler {
cssSelector =
'sc-tailwind-thread-question-question-card sc-tailwind-thread-question-state-chips';
constructor(private extraInfo: ExtraInfo) {
super();
}
onMutatedNode({ node }: NodeMutation) {
this.extraInfo.injectAtQuestionIfEnabled(node);
}
}