"use strict";
Object.defineProperty(exports, "__esModule", {
    value: true
});
Object.defineProperty(exports, "ListTileForSymbol", {
    enumerable: true,
    get: function() {
        return ListTileForSymbol;
    }
});
const _jsxruntime = require("react/jsx-runtime");
const _react = require("react");
const _listTile = require("./listTile");
const ListTileForSymbol = (props)=>{
    const { symbol, ...rest } = props;
    const { coin, title } = (0, _react.useMemo)(()=>{
        const arr = symbol.split("_");
        return {
            coin: arr[1],
            title: `${arr[1]}-${arr[0]}`
        };
    }, [
        symbol
    ]);
    return /*#__PURE__*/ (0, _jsxruntime.jsx)(_listTile.ListTile, {
        ...rest,
        avatar: {
            type: "coin",
            // @ts-ignore
            name: coin
        },
        title: title
    });
};

//# sourceMappingURL=listTileForSymbol.js.map