16 lines
346 B
JavaScript
16 lines
346 B
JavaScript
import { slotContenders } from "discourse/plugins/discourse-adplugin/discourse/components/ad-slot";
|
|
|
|
export default {
|
|
shouldRender(args, component) {
|
|
return (
|
|
args.index &&
|
|
slotContenders(
|
|
component.site,
|
|
component.siteSettings,
|
|
"topic-list-between",
|
|
args.index
|
|
).length > 0
|
|
);
|
|
},
|
|
};
|