1
0
mirror of https://github.com/ascribe/onion.git synced 2025-01-09 13:21:44 +01:00
onion/js/components/ascribe_buttons/acls/loan_button.js

28 lines
676 B
JavaScript
Raw Normal View History

2015-11-03 11:13:32 +01:00
'use strict';
import React from 'react';
import AclButton from './acl_button';
import { omitFromObject } from '../../../utils/general_utils';
import { getLangText } from '../../../utils/lang_utils';
let LoanButton = React.createClass({
propTypes: {
...omitFromObject(AclButton.propTypes, ['action']),
email: React.PropTypes.string
},
render() {
return (
<AclButton
{...this.props}
action='acl_loan'
title={getLangText('Loan artwork')}
tooltip={getLangText('Loan your artwork for a limited period of time')} />
);
}
});
export default LoanButton;