GladysProject/Gladys

View on GitHub
front/src/routes/integration/all/bluetooth/BluetoothPage.js

Summary

Maintainability
D
2 days
Test Coverage
import { Text } from 'preact-i18n';
import { Link } from 'preact-router/match';

const BluetoothPage = ({ children }) => (
  <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.bluetooth.title" />
              </h3>
              <div>
                <div class="list-group list-group-transparent mb-0">
                  <Link
                    href="/dashboard/integration/device/bluetooth"
                    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.bluetooth.deviceTab" />
                  </Link>

                  <Link
                    href="/dashboard/integration/device/bluetooth/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-radio" />
                    </span>
                    <Text id="integration.bluetooth.discoverTab" />
                  </Link>

                  <Link
                    href="/dashboard/integration/device/bluetooth/config"
                    activeClassName="active"
                    class="list-group-item list-group-item-action d-flex align-items-center"
                  >
                    <span class="icon mr-3">
                      <i class="fe fe-settings" />
                    </span>
                    <Text id="integration.bluetooth.setupTab" />
                  </Link>
                </div>
              </div>
            </div>

            <div class="col-lg-9">{children}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
);

export default BluetoothPage;