26 |
27 | {links.map((item, i) => (
28 |
29 |
30 | {links.length !== i + 1 && }
31 |
32 | ))}
33 |
34 |
35 | );
36 | }
37 |
--------------------------------------------------------------------------------
/src/theme/Footer/Links/index.tsx:
--------------------------------------------------------------------------------
1 | import React, {type ReactNode} from 'react';
2 |
3 | import {isMultiColumnFooterLinks} from '@docusaurus/theme-common';
4 | import FooterLinksMultiColumn from '@theme/Footer/Links/MultiColumn';
5 | import FooterLinksSimple from '@theme/Footer/Links/Simple';
6 | import type {Props} from '@theme/Footer/Links';
7 |
8 | export default function FooterLinks({links}: Props): ReactNode {
9 | return isMultiColumnFooterLinks(links) ? (
10 |