1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00
Files
Radarr/frontend/src/InteractiveImport/Movie/SelectMovieRow.tsx
T
Mark McDowall 779292490a Convert SelectMovieRow to TypeScript
(cherry picked from commit 32ce09648cb9eb13c46b060f2665f3ce837261f2)
2025-03-08 15:16:12 +02:00

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;