mirror of
https://github.com/ascribe/onion.git
synced 2025-01-09 13:21:44 +01:00
25 lines
651 B
JavaScript
25 lines
651 B
JavaScript
|
'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']),
|
||
|
|
||
|
render() {
|
||
|
return (
|
||
|
<AclButton
|
||
|
{...this.props}
|
||
|
action='acl_loan_request'
|
||
|
title={getLangText('Loan artwork')}
|
||
|
tooltip={getLangText('Someone requested you to loan your artwork for a limited period of time')} />
|
||
|
);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
export default LoanButton;
|