mirror of
https://github.com/theoludwig/theoludwig.git
synced 2024-11-10 06:18:07 +01:00
22 lines
422 B
TypeScript
22 lines
422 B
TypeScript
import Image from 'next/image'
|
|
|
|
export interface LanguageFlagProps {
|
|
language: string
|
|
}
|
|
|
|
export const LanguageFlag: React.FC<LanguageFlagProps> = (props) => {
|
|
const { language } = props
|
|
|
|
return (
|
|
<>
|
|
<Image
|
|
width={35}
|
|
height={35}
|
|
src={`/images/languages/${language}.svg`}
|
|
alt={language}
|
|
/>
|
|
<p className='mx-2 text-base'>{language.toUpperCase()}</p>
|
|
</>
|
|
)
|
|
}
|