mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 18:57:03 +02:00
16 lines
496 B
TypeScript
16 lines
496 B
TypeScript
import { asset } from '../../core/blitzkrieg/asset';
|
|||
|
|
import { GenericTankComponentButton } from './GenericTankComponentButton';
|
||
|
|
import { TankComponentButtonProps } from './TankComponentButton';
|
||
|
|
|
||
|
|
interface EquipmentButtonProps extends TankComponentButtonProps {
|
||
|
|
equipment: number;
|
||
|
|
}
|
||
|
|
|
||
|
|
export function EquipmentButton({ equipment, ...props }: EquipmentButtonProps) {
|
||
|
|
return (
|
||
|
|
<GenericTankComponentButton
|
||
|
|
icon={asset(`icons/equipment/${equipment}.webp`)}
|
||
|
|
{...props}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|