UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

19 lines (15 loc) 688 B
import { div } from 'r-dom'; import classNames from 'classnames'; import css from './RoundButton.css'; import arrowLeft from './images/arrowLeft.svg'; import arrowRight from './images/arrowRight.svg'; export default function RoundButton({ diameter, content, className }) { return div({ className: classNames(className, css.roundButton), style: { height: diameter, width: diameter } }, content); } export const ArrowButton = ({ className, direction, isDisabled }) => div({ className: classNames(className, css.arrowButton, css.roundButton, { [css.disabled]: isDisabled }), dangerouslySetInnerHTML: { __html: direction === 'left' ? arrowLeft : arrowRight, }, });