<?php
// Groups app. The React bundle mounts on #groups-root and reads permissions
// from data-props. vendor.bundle.js and cmdb.bundle.js (used by the
// shared-group "Data" tab's #cmdb-root component) are already loaded globally
// via carabiner, so only the feature bundle is loaded here.
?>
<div
    id="groups-root"
    data-props='<?= json_encode([
        "canCreateShared" => isActionAllowed("host-groups-shared.post"),
        "canViewData"     => isActionAllowed("shared-group-cmdb.get"),
        "isSuperHub"      => isSuperHub(),
    ]) ?>'>
</div>
<script src="/scripts/dist/groups.bundle.js"></script>
