import o from"react";import e from"react";var s=({className:C,style:r,fill:t="currentColor"})=>e.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C,style:r},e.createElement("path",{d:"M12 12H12.01M12 6H12.01M12 18H12.01M13 12C13 12.5523 12.5523 13 12 13C11.4477 13 11 12.5523 11 12C11 11.4477 11.4477 11 12 11C12.5523 11 13 11.4477 13 12ZM13 18C13 18.5523 12.5523 19 12 19C11.4477 19 11 18.5523 11 18C11 17.4477 11.4477 17 12 17C12.5523 17 13 17.4477 13 18ZM13 6C13 6.55228 12.5523 7 12 7C11.4477 7 11 6.55228 11 6C11 5.44772 11.4477 5 12 5C12.5523 5 13 5.44772 13 6Z",stroke:t,"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}));var n=({className:C,style:r,fill:t="currentColor"})=>e.createElement("svg",{width:"800px",height:"800px",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:C,style:r},e.createElement("path",{d:"M16 22V8C16 5.17157 16 3.75736 15.1213 2.87868C14.2426 2 12.8284 2 10 2H9C6.17157 2 4.75736 2 3.87868 2.87868C3 3.75736 3 5.17157 3 8V22",stroke:t,"stroke-width":"1.5"}),e.createElement("path",{d:"M11 6H8C7.05719 6 6.58579 6 6.29289 6.29289C6 6.58579 6 7.05719 6 8C6 8.94281 6 9.41421 6.29289 9.70711C6.58579 10 7.05719 10 8 10H11C11.9428 10 12.4142 10 12.7071 9.70711C13 9.41421 13 8.94281 13 8C13 7.05719 13 6.58579 12.7071 6.29289C12.4142 6 11.9428 6 11 6Z",stroke:t,"stroke-width":"1.5"}),e.createElement("path",{d:"M7 17H12",stroke:t,"stroke-width":"1.5","stroke-linecap":"round"}),e.createElement("path",{d:"M17 22H2",stroke:t,"stroke-width":"1.5","stroke-linecap":"round"}),e.createElement("path",{d:"M19.5 4L20.7331 4.98647C20.8709 5.09673 20.9398 5.15186 21.0025 5.20805C21.5937 5.73807 21.9508 6.48086 21.9953 7.27364C22 7.35769 22 7.44594 22 7.62244V18.5C22 19.3284 21.3284 20 20.5 20C19.6716 20 19 19.3284 19 18.5V18.4286C19 17.6396 18.3604 17 17.5714 17H16",stroke:t,"stroke-width":"1.5","stroke-linecap":"round"}),e.createElement("path",{d:"M22 8H20.5C19.6716 8 19 8.67157 19 9.5V11.9189C19 12.5645 19.4131 13.1377 20.0257 13.3419L22 14",stroke:t,"stroke-width":"1.5","stroke-linecap":"round"}));function l(C){return C?C.substring(C.length-4,C.length):null}var i=({token:C,onDotsClick:r})=>o.createElement("li",{key:C.address+C.chainId+C.wallet,className:"relative flex mb-2 justify-start py-2 px-3 gap-4 items-center bg-background-primary rounded-sm min-w-[300px] border-2 border-transparent hover:border-2 hover:border-accent-color hover:shadow-lg cursor-pointer"},C.isGasToken?o.createElement(n,{className:"w-10 h-10 text-accent-color"}):o.createElement("img",{src:C.icon,alt:"Token Icon",className:"w-10 h-10"}),o.createElement("p",{className:"absolute left-3 top-0 rounded-lg py-0 px-1 text-xs"},l(C.wallet)),o.createElement("p",{className:"absolute left-1 bottom-1 bg-accent-color rounded-lg py-0 px-1 text-xs"},C.chainId),o.createElement("div",{className:"flex flex-col mr-10 w-[100px]"},o.createElement("span",{className:"text-text-primary whitespace-nowrap overflow-hidden text-ellipsis"},C.name),o.createElement("span",{className:"text-text-secondary"},C.symbol)),o.createElement("div",{className:"flex flex-col  w-[100px] "},o.createElement("span",{className:"text-text-primary whitespace-nowrap overflow-hidden text-ellipsis"},C?.balance||"0"),o.createElement("span",{className:"text-text-secondary whitespace-nowrap overflow-hidden text-ellipsis"},"$",parseFloat(C?.balance||"0")*(C.price||0))),o.createElement("div",{className:"flex text-text-primary cursor-pointer w-6 h-6 opacity-50 hover:opacity-100",onClick:r},o.createElement(s,{style:{width:"1.5rem",height:"1.5rem"}}))),c=i;export{c as default};
//# sourceMappingURL=TokenListItem.mjs.map