mirror of https://github.com/portainer/portainer
26 lines
536 B
TypeScript
26 lines
536 B
TypeScript
|
import { Check, X } from 'lucide-react';
|
||
|
|
||
|
import { Icon } from '@@/Icon';
|
||
|
|
||
|
import { columnHelper } from './helper';
|
||
|
|
||
|
export const status = columnHelper.accessor('acceptsApplication', {
|
||
|
header: '',
|
||
|
id: 'status',
|
||
|
enableSorting: false,
|
||
|
cell: ({ getValue }) => {
|
||
|
const acceptsApplication = getValue();
|
||
|
return (
|
||
|
<Icon
|
||
|
icon={acceptsApplication ? Check : X}
|
||
|
mode={acceptsApplication ? 'success' : 'danger'}
|
||
|
size="sm"
|
||
|
/>
|
||
|
);
|
||
|
},
|
||
|
meta: {
|
||
|
width: 30,
|
||
|
},
|
||
|
enableResizing: false,
|
||
|
});
|