import { useTranslation } from "~/hooks/useTranslation";
import type { MainWeaponId } from "~/modules/in-game-lists";
import { mainWeaponImageUrl, outlinedMainWeaponImageUrl } from "~/utils/urls";
interface ImageProps {
path: string;
alt: string;
title?: string;
className?: string;
containerClassName?: string;
width?: number;
height?: number;
style?: React.CSSProperties;
testId?: string;
onClick?: () => void;
}
export function Image({
path,
alt,
title,
className,
width,
height,
style,
testId,
containerClassName,
onClick,
}: ImageProps) {
return (
);
}
type WeaponImageProps = {
weaponSplId: MainWeaponId;
variant: "badge" | "build";
} & Omit;
export function WeaponImage({
weaponSplId,
variant,
testId,
...rest
}: WeaponImageProps) {
const { t } = useTranslation(["weapons"]);
return (
);
}