1 import PropTypes from 'prop-types';
2 import React from 'react';
3 import { ListGroup } from 'react-bootstrap';
5 const Outline = ({ technique }) => technique.chapters && technique.chapters.length ?
6 <aside className="tech-outline mb-3 ms-3">
8 {technique.chapters.map(chapter => chapter.pivot.level ?
11 href={`#c${chapter.id}`}
12 key={`c${chapter.id}`}
13 title={chapter.short || null}
23 technique: PropTypes.shape({
24 chapters: PropTypes.arrayOf(PropTypes.shape({
29 export default Outline;