Skip to content

Commit

Permalink
Type site footer
Browse files Browse the repository at this point in the history
  • Loading branch information
terotik committed Nov 3, 2023
1 parent db5f475 commit 50d6601
Showing 1 changed file with 47 additions and 5 deletions.
52 changes: 47 additions & 5 deletions components/common/SiteFooter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import PropTypes from 'prop-types';
import { Container } from 'reactstrap';
import { transparentize } from 'polished';
import SVG from 'react-inlinesvg';
import styled, { withTheme } from 'styled-components';

import { useTranslation, withTranslation } from 'common/i18n';
import styled from 'styled-components';
import { useTranslation } from 'common/i18n';
import { NavigationLink, Link } from 'common/links';
import Icon from './Icon';
import PlanSelector from 'components/plans/PlanSelector';
Expand Down Expand Up @@ -377,7 +376,50 @@ const FundingInstrumentContainer = styled.div`
}
`;

function SiteFooter(props) {
type SiteFooterProps = {
siteTitle: string;
ownerUrl: string;
ownerName: string;
creativeCommonsLicense: string;
copyrightText: string;
footerStatement: string;
ownerLinks: { id: string; title: string; url: string }[];
navItems: {
id: string;
name: string;
slug: string;
children: {
id: string;
name: string;
slug: string;
}[];
}[];
utilityLinks: {
id: string;
name: string;
slug: string;
icon: string;
}[];
additionalLinks: {
id: string;
name: string;
slug: string;
}[];
fundingInstruments: {
id: string;
name: string;
link: string;
logo: string;
}[];
otherLogos: {
id: string;
name: string;
link: string;
logo: string;
}[];
};

function SiteFooter(props: SiteFooterProps) {
const { t } = useTranslation();
const theme = useTheme();
const {
Expand Down Expand Up @@ -661,4 +703,4 @@ SiteFooter.propTypes = {
ownerLinks: PropTypes.arrayOf(PropTypes.shape({})),
};

export default withTranslation('common')(withTheme(SiteFooter));
export default SiteFooter;

0 comments on commit 50d6601

Please sign in to comment.