front/src/routes/integration/all/zigbee2mqtt/Zigbee2mqttPage.js
import { Text } from 'preact-i18n';
import { Link } from 'preact-router/match';
import DeviceConfigurationLink from '../../../../components/documentation/DeviceConfigurationLink';
const Zigbee2mqttPage = ({ children, user }) => (
<div class="page">
<div class="page-main">
<div class="my-3 my-md-5">
<div class="container">
<div class="row">
<div class="col-lg-3">
<h3 class="page-title mb-5">
<Text id="integration.zigbee2mqtt.title" />
</h3>
<div>
<div class="list-group list-group-transparent mb-0">
<Link
href="/dashboard/integration/device/zigbee2mqtt"
activeClassName="active"
class="list-group-item list-group-item-action d-flex align-items-center"
>
<span class="icon mr-3">
<i class="fe fe-link" />
</span>
<Text id="integration.zigbee2mqtt.deviceTab" />
</Link>
<Link
href="/dashboard/integration/device/zigbee2mqtt/discover"
activeClassName="active"
class="list-group-item list-group-item-action d-flex align-items-center"
>
<span class="icon mr-3">
<i class="fe fe-radio" />
</span>
<Text id="integration.zigbee2mqtt.discoverTab" />
</Link>
<Link
href="/dashboard/integration/device/zigbee2mqtt/setup"
activeClassName="active"
class="list-group-item list-group-item-action d-flex align-items-center"
>
<span class="icon mr-3">
<i class="fe fe-sliders" />
</span>
<Text id="integration.zigbee2mqtt.setupTab" />
</Link>
<DeviceConfigurationLink
user={user}
configurationKey="integrations"
documentKey="zigbee2mqtt"
linkClass="list-group-item list-group-item-action d-flex align-items-center"
>
<span class="icon mr-3">
<i class="fe fe-book-open" />
</span>
<Text id="integration.zigbee2mqtt.documentation" />
</DeviceConfigurationLink>
</div>
</div>
</div>
<div class="col-lg-9">{children}</div>
</div>
</div>
</div>
</div>
</div>
);
export default Zigbee2mqttPage;