2020-06-23 00:09:42 +05:30
|
|
|
import { commitItemIconMap } from './constants';
|
|
|
|
|
2021-03-08 18:12:59 +05:30
|
|
|
export default (file) => {
|
2020-06-23 00:09:42 +05:30
|
|
|
if (file.deleted) {
|
|
|
|
return commitItemIconMap.deleted;
|
|
|
|
} else if (file.tempFile && !file.prevPath) {
|
|
|
|
return commitItemIconMap.addition;
|
|
|
|
}
|
|
|
|
|
|
|
|
return commitItemIconMap.modified;
|
|
|
|
};
|