import QtQuick 2.13 import QtQuick.Layouts 1.13 import utils 1.0 import StatusQ.Controls 0.1 import StatusQ.Popups 0.1 import StatusQ.Components 0.1 import StatusQ.Core 0.1 import StatusQ.Core.Theme 0.1 import StatusQ.Core.Utils 0.1 as StatusQUtils Item { id: root property var store property var bestRoutes property var selectedAccount property var selectedAsset property var allNetworks property bool customMode: false property double amountToSend: 0 property double requiredGasInEth: 0 property bool errorMode: { if(customMode) { return (d.customAmountToSend > amountToSend) || (d.customAmountToSend < amountToSend) || (d.customAmountToReceive > amountToSend) || (d.customAmountToReceive < amountToSend) } else { return !d.thereIsApossibleRoute } } property bool interactive: true property var weiToEth: function(wei) {} signal reCalculateSuggestedRoute() QtObject { id: d property double customAmountToSend: 0 property double customAmountToReceive: 0 property bool thereIsApossibleRoute: false function resetAllSetValues() { for(var i = 0; i