Newer
Older
CrypticOreWallet / src / layouts / main / components / sidebar / SidebarItem.tsx
@Drew Lemmy Drew Lemmy on 8 Sep 2020 493 bytes chore: replace type aliases with interfaces
import React from "react";

import "./SidebarItem.scss";

import Nav from "react-bootstrap/Nav";
import { LinkContainer } from "react-router-bootstrap";

interface Props {
  url: string;
  text: string;
  icon: string;
};

export const SidebarItem: React.FC<Props> = ({ url, text, icon }: Props) => (
  <Nav.Item>
    <LinkContainer to={url}>
      <Nav.Link>
        <span className={"sidebar-icon icon-" + icon}></span>
        {text}
      </Nav.Link>
    </LinkContainer>
  </Nav.Item>
);