Language selection added
This commit is contained in:
15
components/Languages.tsx
Normal file
15
components/Languages.tsx
Normal 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;
|
||||
Reference in New Issue
Block a user