import React from "react"; import Config, { BrainAtlasType, MultiLang } from "../config"; import styles from "./DatabaseTop.module.css"; import ItemType from "./item-type"; interface Props { lang: MultiLang; type: BrainAtlasType; } const DatabaseTop: React.FC = (props: Props) => { const { lang, type } = props; const types: string[][] = []; const len = Config.XOONIPS_ITEMTYPES.length; for (let i = 0; i < Math.ceil(len / 2); i++) { const j = i * 2; const p = Config.XOONIPS_ITEMTYPES.slice(j, j + 2); types.push(p); } return ( {types.map((value, idx) => { return ( {value.map((itemType, idx) => { return ( ); })} ); })}
{itemType !== "" && }
); }; export default DatabaseTop;