2015-10-30 11:10:31 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
import React from 'react';
|
|
|
|
|
|
|
|
import AclButton from './acl_button';
|
|
|
|
|
2015-11-02 18:44:09 +01:00
|
|
|
import { omitFromObject } from '../../../utils/general_utils';
|
2015-10-30 11:10:31 +01:00
|
|
|
import { getLangText } from '../../../utils/lang_utils';
|
|
|
|
|
|
|
|
let LoanButton = React.createClass({
|
2015-11-03 11:12:04 +01:00
|
|
|
propTypes: {
|
|
|
|
...omitFromObject(AclButton.propTypes, ['action']),
|
|
|
|
email: React.PropTypes.string
|
|
|
|
},
|
2015-11-02 18:44:09 +01:00
|
|
|
|
2015-10-30 11:10:31 +01:00
|
|
|
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;
|