parent
0b7ce67635
commit
3a389476e5
@ -0,0 +1,27 @@
|
||||
import { icons } from 'Helpers/Props';
|
||||
import translate from 'Utilities/String/translate';
|
||||
|
||||
export function getAuthorStatusDetails(status) {
|
||||
|
||||
let statusDetails = {
|
||||
icon: icons.AUTHOR_CONTINUING,
|
||||
title: translate('StatusEndedContinuing'),
|
||||
message: translate('ContinuingMoreBooksAreExpected')
|
||||
};
|
||||
|
||||
if (status === 'deleted') {
|
||||
statusDetails = {
|
||||
icon: icons.AUTHOR_DELETED,
|
||||
title: translate('StatusEndedDeceased'),
|
||||
message: translate('NotContinuingAuthorDeceased')
|
||||
};
|
||||
} else if (status === 'ended') {
|
||||
statusDetails = {
|
||||
icon: icons.AUTHOR_ENDED,
|
||||
title: translate('StatusEndedEnded'),
|
||||
message: translate('ContinuingNoAdditionalBooksAreExpected')
|
||||
};
|
||||
}
|
||||
|
||||
return statusDetails;
|
||||
}
|
Loading…
Reference in new issue