summaryrefslogtreecommitdiffhomepage
path: root/app/components/styled/Button.js
blob: c2b258c161e6377b5c56bd788fc846ed9258e066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// @flow

import React from 'react';
import ReactXP from 'reactxp';

const defaultStyle = ReactXP.Styles.createViewStyle({
  cursor: 'default',
});

export function Button(props: Object) {
  const { style, ...rest } = props;

  const concreteStyle = ReactXP.Styles.combine([defaultStyle, style]);

  return <ReactXP.Button style={concreteStyle} {...rest} />;
}