|
1 | | -import React, {type ReactNode} from 'react'; |
| 1 | +import React, { type ReactNode } from 'react'; |
2 | 2 | import clsx from 'clsx'; |
3 | | -import {ThemeClassNames} from '@docusaurus/theme-common'; |
4 | | -import type {Props} from '@theme/Footer/Layout'; |
| 3 | +import { ThemeClassNames } from '@docusaurus/theme-common'; |
| 4 | +import type { Props } from '@theme/Footer/Layout'; |
5 | 5 | import ShareButtons from '@site/src/components/ShareButtons'; |
6 | 6 | import styles from './FooterLayout.module.css'; |
7 | 7 |
|
8 | | -export default function FooterLayout({ |
9 | | - style, |
10 | | - links, |
11 | | - logo, |
12 | | - copyright, |
13 | | -}: Props): ReactNode { |
14 | | - return ( |
15 | | - <footer |
16 | | - className={clsx(ThemeClassNames.layout.footer.container, 'footer', { |
17 | | - 'footer--dark': style === 'dark', |
18 | | - })}> |
19 | | - <div className="container container-fluid"> |
20 | | - {links} |
21 | | - <div className={styles.shareButtonsContainer}> |
22 | | - <ShareButtons compact={true} /> |
23 | | - </div> |
24 | | - {(logo || copyright) && ( |
25 | | - <div className="footer__bottom text--center"> |
26 | | - {logo && <div className="margin-bottom--sm">{logo}</div>} |
27 | | - {copyright} |
28 | | - </div> |
29 | | - )} |
30 | | - </div> |
31 | | - </footer> |
32 | | - ); |
| 8 | +export default function FooterLayout({ style, links, logo, copyright }: Props): ReactNode { |
| 9 | + return ( |
| 10 | + <footer |
| 11 | + className={clsx(ThemeClassNames.layout.footer.container, 'footer', { |
| 12 | + 'footer--dark': style === 'dark', |
| 13 | + })} |
| 14 | + > |
| 15 | + <div className="container container-fluid"> |
| 16 | + {links} |
| 17 | + <div className={styles.shareButtonsContainer}> |
| 18 | + <ShareButtons compact={true} /> |
| 19 | + </div> |
| 20 | + {(logo || copyright) && ( |
| 21 | + <div className="footer__bottom text--center"> |
| 22 | + {logo && <div className="margin-bottom--sm">{logo}</div>} |
| 23 | + {copyright} |
| 24 | + </div> |
| 25 | + )} |
| 26 | + </div> |
| 27 | + </footer> |
| 28 | + ); |
33 | 29 | } |
0 commit comments