pragma ComponentBehavior: Bound
import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Page {
    title: qsTr("Reservations")

    header: ToolBar {
        RowLayout {
            anchors.fill: parent

            ToolButton {
                action: logoutAction
            }
        }
    }

    ListView {
        anchors.fill: parent

        delegate: Text {
            required property string name

            text: name
        }
        model: CalendarListModel {
        }
    }

    MnemonicAction {
        id: logoutAction

        icon.name: "system-log-out"
        mnemonic: qsTr("Log &out")

        onTriggered: function () {
            Database.close();
        }
    }
}
