import React from 'react'; import styled from 'styled-components'; import * as tokens from '@tokens'; import { mq } from '@tokensDir/media-query'; import { dim } from '@dim'; import { LocaleProps } from './interface'; import Title from './title'; import Body from '../Typography/Body'; const LocaleSection = styled.div` grid-column: span 6; margin-bottom: ${dim(1)}; ${mq.md` margin-bottom: ${dim(2)}; `} a { display: flex; align-items: center; color: ${tokens.colorBlack}; text-decoration: none; } `; const LocaleTitle = styled(Title)` padding-bottom: ${dim(1.5)}; `; const RegionFlag = styled.img` max-width: 22px; `; const RegionName = styled(Body)` display: inline-block; margin-left: ${dim(1)}; margin-top: 0; margin-bottom: 0; `; const RegionAnchor = styled.a` margin: 0; `; const Locale: React.FC = ({ title = '', flag = '', name = '' }) => { return ( {title} {name} ); }; export default Locale;