2023-07-29 15:08:41 +00:00
|
|
|
import { Check, X } from 'lucide-react';
|
|
|
|
|
|
|
|
import { Icon } from '@@/Icon';
|
|
|
|
|
|
|
|
import { columnHelper } from './helper';
|
|
|
|
|
2023-08-27 21:01:35 +00:00
|
|
|
export const status = columnHelper.accessor('acceptsApplication', {
|
2023-08-13 17:09:40 +00:00
|
|
|
header: '',
|
2023-07-29 15:08:41 +00:00
|
|
|
id: 'status',
|
2023-08-13 17:09:40 +00:00
|
|
|
enableSorting: false,
|
2023-07-29 15:08:41 +00:00
|
|
|
cell: ({ getValue }) => {
|
|
|
|
const acceptsApplication = getValue();
|
|
|
|
return (
|
2024-05-14 01:39:53 +00:00
|
|
|
<div className="flex items-center h-full">
|
|
|
|
<Icon
|
|
|
|
icon={acceptsApplication ? Check : X}
|
|
|
|
mode={acceptsApplication ? 'success' : 'danger'}
|
|
|
|
size="sm"
|
|
|
|
/>
|
|
|
|
</div>
|
2023-07-29 15:08:41 +00:00
|
|
|
);
|
|
|
|
},
|
|
|
|
meta: {
|
|
|
|
width: 30,
|
|
|
|
},
|
|
|
|
enableResizing: false,
|
|
|
|
});
|