holywyvern/carbuncle

View on GitHub
website/src/components/no-example/index.js

Summary

Maintainability
A
0 mins
Test Coverage
import { withTranslation } from "next-i18next";

import Panel from "../panel";

import styles from "./styles.module.scss";

function NoExample({ t }) {
  return (
    <div className={styles.wrapper}>
      <div className={styles.view}>
        <Panel>
          {t("No example selected.")}
          <br />
          {t("Select one from the sidebar.")}
        </Panel>
      </div>
    </div>
  );
}

export default withTranslation("examples")(NoExample);