parent
a4301f8db0
commit
ccbc8f591b
@ -1,30 +1,31 @@
|
||||
import { icons } from 'Helpers/Props';
|
||||
import { MovieStatus } from 'Movie/Movie';
|
||||
import translate from 'Utilities/String/translate';
|
||||
|
||||
export default function getMovieStatusDetails(status) {
|
||||
export default function getMovieStatusDetails(status: MovieStatus) {
|
||||
let statusDetails = {
|
||||
icon: icons.ANNOUNCED,
|
||||
title: translate('Announced'),
|
||||
message: translate('AnnouncedMsg')
|
||||
message: translate('AnnouncedMovieDescription'),
|
||||
};
|
||||
|
||||
if (status === 'deleted') {
|
||||
statusDetails = {
|
||||
icon: icons.MOVIE_DELETED,
|
||||
title: translate('Deleted'),
|
||||
message: translate('DeletedMsg')
|
||||
message: translate('DeletedMovieDescription'),
|
||||
};
|
||||
} else if (status === 'inCinemas') {
|
||||
statusDetails = {
|
||||
icon: icons.IN_CINEMAS,
|
||||
title: translate('InCinemas'),
|
||||
message: translate('InCinemasMsg')
|
||||
message: translate('InCinemasMovieDescription'),
|
||||
};
|
||||
} else if (status === 'released') {
|
||||
statusDetails = {
|
||||
icon: icons.MOVIE_FILE,
|
||||
title: translate('Released'),
|
||||
message: translate('ReleasedMsg')
|
||||
message: translate('ReleasedMovieDescription'),
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in new issue