//#region src/gate.ts
function isIndexable(tenant, node, thread) {
	if (!tenant.indexingEnabled) return false;
	if (!node.published || node.noindex) return false;
	if (thread && (!thread.published || thread.noindex)) return false;
	return true;
}
function robotsValue(indexable) {
	return indexable ? "index,follow" : "noindex,nofollow";
}
//#endregion
export { isIndexable, robotsValue };
