You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
817 B
34 lines
817 B
import { icons } from 'Helpers/Props';
|
|
import translate from 'Utilities/String/translate';
|
|
|
|
export function getMovieStatusDetails(status) {
|
|
|
|
let statusDetails = {
|
|
icon: icons.ANNOUNCED,
|
|
title: translate('Announced'),
|
|
message: translate('AnnoucedMsg')
|
|
};
|
|
|
|
if (status === 'deleted') {
|
|
statusDetails = {
|
|
icon: icons.MOVIE_DELETED,
|
|
title: translate('Deleted'),
|
|
message: translate('DeletedMsg')
|
|
};
|
|
} else if (status === 'inCinemas') {
|
|
statusDetails = {
|
|
icon: icons.IN_CINEMAS,
|
|
title: translate('InCinemas'),
|
|
message: translate('InCinemasMsg')
|
|
};
|
|
} else if (status === 'released') {
|
|
statusDetails = {
|
|
icon: icons.MOVIE_FILE,
|
|
title: translate('Released'),
|
|
message: translate('ReleasedMsg')
|
|
};
|
|
}
|
|
|
|
return statusDetails;
|
|
}
|