Language selection added

This commit is contained in:
David
2021-03-10 18:15:57 +01:00
parent d5c87d1550
commit 61f83278bc
4 changed files with 182 additions and 2 deletions

15
components/Languages.tsx Normal file
View File

@@ -0,0 +1,15 @@
import { FC } from "react";
type Props = {
langs: [string, string][]
};
const Languages: FC<Props> = ({ langs }) => (
<>
{langs.map(([code, name]) => (
<option value={code} key={code}>{name}</option>
))}
</>
);
export default Languages;