Project

General

Profile

Download (335 Bytes) Statistics
| Branch: | Tag: | Revision:
import React from 'react';
import DeleteButton from '../components/DeleteButton';

export const deleteActionCellFormatter = controllerPluralize => (
_,
{ rowData: { can_delete: canDelete, name, id } }
) => (
<DeleteButton
active={canDelete}
name={encodeURI(name)}
id={id}
controller={controllerPluralize}
/>
);
(2-2/8)