mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-24 22:35:49 -04:00
779292490a
(cherry picked from commit 32ce09648cb9eb13c46b060f2665f3ce837261f2)
34 lines
866 B
TypeScript
34 lines
866 B
TypeScript
import React from 'react';
|
|
import Label from 'Components/Label';
|
|
import VirtualTableRowCell from 'Components/Table/Cells/VirtualTableRowCell';
|
|
import styles from './SelectMovieRow.css';
|
|
|
|
interface SelectMovieRowProps {
|
|
title: string;
|
|
tmdbId: number;
|
|
imdbId?: string;
|
|
year: number;
|
|
}
|
|
|
|
function SelectMovieRow({ title, year, tmdbId, imdbId }: SelectMovieRowProps) {
|
|
return (
|
|
<>
|
|
<VirtualTableRowCell className={styles.title}>
|
|
{title}
|
|
</VirtualTableRowCell>
|
|
|
|
<VirtualTableRowCell className={styles.year}>{year}</VirtualTableRowCell>
|
|
|
|
<VirtualTableRowCell className={styles.imdbId}>
|
|
{imdbId ? <Label>{imdbId}</Label> : null}
|
|
</VirtualTableRowCell>
|
|
|
|
<VirtualTableRowCell className={styles.tmdbId}>
|
|
<Label>{tmdbId}</Label>
|
|
</VirtualTableRowCell>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default SelectMovieRow;
|