2020-02-26 05:18:49 +01:00
|
|
|
import { icons } from 'Helpers/Props';
|
2020-11-23 04:34:51 +01:00
|
|
|
import translate from 'Utilities/String/translate';
|
2020-02-26 05:18:49 +01:00
|
|
|
|
2024-05-12 00:50:29 +02:00
|
|
|
export default function getMovieStatusDetails(status) {
|
2020-02-26 05:18:49 +01:00
|
|
|
let statusDetails = {
|
|
|
|
icon: icons.ANNOUNCED,
|
2020-11-23 04:34:51 +01:00
|
|
|
title: translate('Announced'),
|
2021-12-12 18:20:57 +01:00
|
|
|
message: translate('AnnouncedMsg')
|
2020-02-26 05:18:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
if (status === 'deleted') {
|
|
|
|
statusDetails = {
|
|
|
|
icon: icons.MOVIE_DELETED,
|
2020-11-23 04:34:51 +01:00
|
|
|
title: translate('Deleted'),
|
|
|
|
message: translate('DeletedMsg')
|
2020-02-26 05:18:49 +01:00
|
|
|
};
|
|
|
|
} else if (status === 'inCinemas') {
|
|
|
|
statusDetails = {
|
|
|
|
icon: icons.IN_CINEMAS,
|
2020-11-23 04:34:51 +01:00
|
|
|
title: translate('InCinemas'),
|
|
|
|
message: translate('InCinemasMsg')
|
2020-02-26 05:18:49 +01:00
|
|
|
};
|
|
|
|
} else if (status === 'released') {
|
|
|
|
statusDetails = {
|
|
|
|
icon: icons.MOVIE_FILE,
|
2020-11-23 04:34:51 +01:00
|
|
|
title: translate('Released'),
|
|
|
|
message: translate('ReleasedMsg')
|
2020-02-26 05:18:49 +01:00
|
|
|
};
|
2019-10-02 04:16:16 +02:00
|
|
|
}
|
|
|
|
|
2020-02-26 05:18:49 +01:00
|
|
|
return statusDetails;
|
2019-10-02 04:16:16 +02:00
|
|
|
}
|