{(() => {
const enPublished = postGroup.en?.status === 'published'
const hiPublished = postGroup.hi?.status === 'published'
if (enPublished && hiPublished) {
- return 📱 Published in: Both Languages
+ return 📱Published in: Both Languages
} else if (enPublished) {
- return 📱 Published in: English Only
+ return 📱Published in: English Only
} else if (hiPublished) {
- return 📱 Published in: Hindi Only
+ return 📱Published in: Hindi Only
} else {
- return 📝 Draft - Not Published
+ return 📝Draft - Not Published
}
})()}
- {/* Always show dual-language layout - all content preserved */}
-
- {/* English Section */}
+ {/* Conditional language layout based on publish mode */}
+
+ {/* English Section - only show if publishMode is 'en' or 'both' */}
+ {(publishMode === 'en' || publishMode === 'both') && (
+ )}
- {/* Hindi Section */}
+ {/* Hindi Section - only show if publishMode is 'hi' or 'both' */}
+ {(publishMode === 'hi' || publishMode === 'both') && (