'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _reactIntl = require('react-intl');

exports.default = pluginContext => {
  var _pluginContext$format = pluginContext.formatHelpers;
  const formatRefName = _pluginContext$format.formatRefName,
        formatTimestamp = _pluginContext$format.formatTimestamp;


  return {
    default: {
      loanOutNumber: {
        messages: (0, _reactIntl.defineMessages)({
          label: {
            'id': 'column.loanout.default.loanOutNumber',
            'defaultMessage': 'Loan out number'
          }
        }),
        order: 10,
        sortBy: 'loansout_common:loanOutNumber',
        width: 250
      },
      borrower: {
        formatValue: formatRefName,
        messages: (0, _reactIntl.defineMessages)({
          label: {
            'id': 'column.loanout.default.borrower',
            'defaultMessage': 'Borrower'
          }
        }),
        order: 20,
        sortBy: 'loansout_common:borrower',
        width: 400
      },
      updatedAt: {
        formatValue: formatTimestamp,
        messages: (0, _reactIntl.defineMessages)({
          label: {
            'id': 'column.loanout.default.updatedAt',
            'defaultMessage': 'Updated'
          }
        }),
        order: 30,
        sortBy: 'collectionspace_core:updatedAt',
        width: 150
      }
    }
  };
};