import { h } from "@stencil/core";
import { NftEnumType } from "../../../../../types/tokens.types";
import state from "../../signTransactionsModalStore";
const LABELS = {
    [NftEnumType.SemiFungibleESDT]: 'SFT',
    [NftEnumType.NonFungibleESDT]: 'NFT'
};
export class FungibleComponent {
    render() {
        const { sftTransaction, nftTransaction, commonData } = state;
        const { tokenType } = commonData;
        const data = tokenType === NftEnumType.SemiFungibleESDT
            ? sftTransaction
            : nftTransaction;
        const { amount = '', identifier = '', imageURL = '' } = data || {};
        const label = LABELS[tokenType];
        return (h("sign-transaction-component", { key: '5a613ab14a56d7778d43b2f4a13c760bb44dfdd5', header: h("div", { class: "fungible-container" }, h("span", null, `You are sending ${amount} ${label}`), h("div", { class: "fungible-inner-container" }, h("div", { class: "fungible-img-container" }, h("img", { src: imageURL, alt: identifier, class: "fungible-img" }), h("div", null, h("span", null, identifier))), h("span", { class: "fungible-sft" }, label))) }));
    }
    static get is() { return "fungible-component"; }
    static get originalStyleUrls() {
        return {
            "$": ["fungible-component.css"]
        };
    }
    static get styleUrls() {
        return {
            "$": ["fungible-component.css"]
        };
    }
}
//# sourceMappingURL=fungible-component.js.map
