1 import type { SubSectionConfig } from '../layout/interface';
2 import LinkItem from './LinkItem';
7 subsections?: SubSectionConfig[];
10 const Sections = ({ to, subsections = [], text, available }: Props) => {
12 <ul className="unstyled mt-2">
13 {subsections.length ? (
15 .filter(({ hide }) => !hide)
16 .map(({ text, id, available }) => {
18 <li key={id} className="my-2">
19 <LinkItem to={`${to}#${id}`} text={text} available={available} />
25 <LinkItem to={to} text={text} available={available} />
32 export default Sections;