GladysProject/Gladys

View on GitHub
front/src/routes/integration/all/melcloud/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.melcloud.device.noDeviceFound" />

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

export default EmptyState;