mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-18 20:54:56 +02:00
29 lines
906 B
JavaScript
29 lines
906 B
JavaScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
import React from 'react';
|
|
import {useThemeConfig} from '@docusaurus/theme-common';
|
|
import FooterLinks from '@theme/Footer/Links';
|
|
import FooterLogo from '@theme/Footer/Logo';
|
|
import FooterCopyright from '@theme/Footer/Copyright';
|
|
import FooterLayout from '@theme/Footer/Layout';
|
|
function Footer() {
|
|
const {footer} = useThemeConfig();
|
|
if (!footer) {
|
|
return null;
|
|
}
|
|
const {copyright, links, logo, style} = footer;
|
|
return (
|
|
<FooterLayout
|
|
style={style}
|
|
links={links && links.length > 0 && <FooterLinks links={links} />}
|
|
logo={logo && <FooterLogo logo={logo} />}
|
|
copyright={copyright && <FooterCopyright copyright={copyright} />}
|
|
/>
|
|
);
|
|
}
|
|
export default React.memo(Footer);
|