import * as React from 'react'; import styled from 'styled-components'; import * as tokens from '@tokens'; import { mq } from '@tokensDir/media-query'; import { dim } from '@dim'; import { FooterProps } from './interface'; import Legal from './legal'; import CurrentLocale from './locale'; import Links from './links'; const SiteFooter = styled.footer` margin-bottom: 0; margin-top: ${dim(6)}; padding-top: ${dim(6)}; position: relative; ${mq.md` margin-top: ${dim(4)}; `} &:before { background-color: ${tokens.colorGrey15}; content: ''; height: 1px; left: 0; position: absolute; top: 0; width: 100%; } `; const LinksWrapper = styled.section` display: block; grid-template-columns: repeat(12, 1fr); grid-column-gap: ${dim(2)}; position: relative; ${mq.md` display: grid; margin: 0 ${dim(4)}; `} `; const Footer: React.FC = ({ locale = { flag: '', name: '', title: '' }, legal = '', navigation = [] }) => ( {navigation && } {locale && } {legal && } ); export default Footer;