Newer
Older
CrypticOreWallet / src / shared-components / icon-button / index.tsx
@Drew Lemmy Drew Lemmy on 11 Sep 2020 403 bytes feat: start of 'my wallets' screen
import React, { PropsWithChildren } from "react";

import Button, { ButtonProps } from "react-bootstrap/Button";

import "./index.scss";

interface Props extends ButtonProps {
  icon: string;
}

export const IconButton: React.FC<Props> = (props: PropsWithChildren<Props>) => {
  return <Button {...props}>
    <span className={`btn-icon icon-${props.icon}`}></span>
    {props.children}
  </Button>;
};