import QtQuick
import QtQuick.Controls
import TactileIPC 1.0

Item {
    property string text
    property alias checked: toggleIndicator.checked

    Label {
        id: toggleText
        text: parent.text
        anchors.verticalCenter: toggleIndicator.verticalCenter
    }
    Switch {
        id: toggleIndicator
        anchors.left: toggleText.right
        anchors.leftMargin: 8
    }
}
