1
1
mirror of https://github.com/theoludwig/theoludwig.git synced 2024-12-08 00:44:30 +01:00
.profile/components/Header/Language/LanguageFlag.tsx

25 lines
489 B
TypeScript
Raw Normal View History

import Image from 'next/image'
export interface LanguageFlagProps {
language: string
}
export const LanguageFlag: React.FC<LanguageFlagProps> = (props) => {
const { language } = props
return (
<>
<Image
2022-02-22 21:19:42 +01:00
quality={100}
width={35}
height={35}
src={`/images/languages/${language}.svg`}
alt={language}
/>
2021-08-13 15:48:29 +02:00
<p data-cy='language-flag-text' className='mx-2 text-base'>
{language.toUpperCase()}
</p>
</>
)
}