You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/web/plugins/com.msgbyte.genshin/src/GenshinPanel/GachaPool/GachaPoolItem.tsx

20 lines
433 B
TypeScript

import { OfficialGachaPoolItem } from 'genshin-gacha-kit';
import React from 'react';
export const GachaPoolItem: React.FC<{
items: OfficialGachaPoolItem[];
}> = React.memo((props) => {
return (
<div>
{props.items.map((i) => (
<div key={i.item_id}>
<img src={i.item_img} />
<div>{i.item_name}</div>
</div>
))}
</div>
);
});
GachaPoolItem.displayName = 'GachaPoolItem';