import { useLingui } from "@lingui/react"; import Image from "next/image"; import React from "react"; interface WeaponImageProps { name: string; size: 32 | 64 | 128; noTitle?: boolean; isInline?: boolean; } const WeaponImage: React.FC = ({ name, size, noTitle, isInline, }) => { const { i18n } = useLingui(); return ( <> {i18n._(name)} ); }; export default WeaponImage;