GladysProject/Gladys

View on GitHub
front/src/routes/integration/all/zwavejs-ui/device-page/EmptyState.jsx

Summary

Maintainability
B
6 hrs
Test Coverage
import { Text } from 'preact-i18n';
import { Link } from 'preact-router/match';
import cx from 'classnames';
import style from './style.css';

const EmptyState = () => (
  <div class="col-md-12">
    <div class={cx('text-center', style.emptyStateDivBox)}>
      <Text id="integration.zwavejs-ui.device.noDeviceFound" />

      <div class="mt-5">
        <Text id="integration.zwavejs-ui.discoverDeviceDescr" />
        <Link href="/dashboard/integration/device/zwavejs-ui/discover">
          <button class="btn btn-outline-primary ml-2">
            <Text id="integration.zwavejs-ui.discoverTab" /> <i class="fe fe-radio" />
          </button>
        </Link>
      </div>
    </div>
  </div>
);

export default EmptyState;