import React, { useState } from 'react' import { useTranslation } from 'next-i18next' import Switch from '~components/common/Switch' import WeaponUnit from '~components/weapon/WeaponUnit' import type { SearchableObject } from '~types' import './index.scss' import classNames from 'classnames' // Props interface Props { grid: GridArray editable: boolean found?: boolean offset: number removeWeapon: (id: string) => void updateObject: (object: SearchableObject, position: number) => void updateUncap: (id: string, position: number, uncap: number) => void } // Constants const EXTRA_WEAPONS_COUNT = 3 const ExtraWeaponsGrid = ({ grid, editable, offset, removeWeapon, updateObject, updateUncap, }: Props) => { const { t } = useTranslation('common') const classes = classNames({ ExtraWeapons: true, ContainerItem: true, }) const extraWeapons = ( ) return (

{t('extra_weapons')}

{extraWeapons}
) } export default ExtraWeaponsGrid