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