+
+
+ {getTranslation(technique, 'title', i18n.language)}
+ {actions.editContent ?
+
+ : null}
+
+ {technique && technique.rulesets ?
+
+ : null}
+
+
+
+
+ {technique.chapters ? technique.chapters.map(chapter =>
+
+ {chapter.pivot.level ?
+ React.createElement(
+ `h${chapter.pivot.level}`,
+ {},
+ getTranslation(chapter, 'title', i18n.language),
+ actions.editContent ?
+
+ : null,
+ )
+ : null}
+
+
+ ) : null}
+ {hasRelations(technique, 'related') ? <>
+ {i18n.t('techniques.seeAlso')}
+
+ > : null}
+ {getTranslation(technique, 'attribution', i18n.language) ?
+
+ {nl2br(getTranslation(technique, 'attribution', i18n.language))}
+
+ : null}
+ ;
+};
Detail.propTypes = {
+ actions: PropTypes.shape({
+ editContent: PropTypes.func,
+ }),
technique: PropTypes.shape({
+ chapters: PropTypes.arrayOf(PropTypes.shape({
+ })),
description: PropTypes.string,
+ rulesets: PropTypes.shape({
+ }),
title: PropTypes.string,
}),
};