2020-05-20 09:08:11 +00:00
|
|
|
import { commitItemIconMap } from './constants';
|
|
|
|
|
2020-12-24 00:10:25 +00:00
|
|
|
export default (file) => {
|
2020-05-20 09:08:11 +00:00
|
|
|
if (file.deleted) {
|
|
|
|
return commitItemIconMap.deleted;
|
|
|
|
} else if (file.tempFile && !file.prevPath) {
|
|
|
|
return commitItemIconMap.addition;
|
|
|
|
}
|
|
|
|
|
|
|
|
return commitItemIconMap.modified;
|
|
|
|
};
|