Skip to content

Commit

Permalink
Exercício 43
Browse files Browse the repository at this point in the history
  • Loading branch information
jadirj committed Oct 17, 2024
1 parent a2b607a commit a8cfa55
Showing 1 changed file with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import React from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { useSelector } from 'react-redux';
import Logo from '@plone/volto/components/theme/Logo/Logo';
import { Container } from '@plone/components';

const Footer = () => {
const navRoot = useSelector((state) => state.navroot?.data?.navroot);
const title = navRoot?.title ? navRoot.title : 'Intranet do TRE-PR';
return (
<footer id="footer">
<Container layout className="footer">
<Container className="footer-message">
<span>{title} </span>
</Container>
<div className="logo">
<Logo />
</div>
<a className="item powered-by" href="https://plone.org">
<FormattedMessage
id="Powered by Plone & Python"
defaultMessage="Powered by Plone & Python"
/>
</a>
</Container>
</footer>
);
};

export default injectIntl(Footer);

0 comments on commit a8cfa55

Please sign in to comment.