mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-15 21:05:48 -04:00
33 lines
715 B
JavaScript
33 lines
715 B
JavaScript
import { icons } from 'Helpers/Props';
|
|
|
|
export function getMovieStatusDetails(status) {
|
|
|
|
let statusDetails = {
|
|
icon: icons.ANNOUNCED,
|
|
title: 'Announced',
|
|
message: 'Movie is announced'
|
|
};
|
|
|
|
if (status === 'deleted') {
|
|
statusDetails = {
|
|
icon: icons.MOVIE_DELETED,
|
|
title: 'Deleted',
|
|
message: 'Movie was deleted from TMDb'
|
|
};
|
|
} else if (status === 'inCinemas') {
|
|
statusDetails = {
|
|
icon: icons.IN_CINEMAS,
|
|
title: 'In Cinemas',
|
|
message: 'Movie is in Cinemas'
|
|
};
|
|
} else if (status === 'released') {
|
|
statusDetails = {
|
|
icon: icons.MOVIE_FILE,
|
|
title: 'Released',
|
|
message: 'Movie is released'
|
|
};
|
|
}
|
|
|
|
return statusDetails;
|
|
}
|