import React, { useCallback } from 'react'; import Link from 'Components/Link/Link'; import translate from 'Utilities/String/translate'; import styles from './SelectDownloadClientRow.css'; interface SelectSeasonRowProps { id: number; name: string; priority: number; onDownloadClientSelect(downloadClientId: number): unknown; } function SelectDownloadClientRow(props: SelectSeasonRowProps) { const { id, name, priority, onDownloadClientSelect } = props; const onSeasonSelectWrapper = useCallback(() => { onDownloadClientSelect(id); }, [id, onDownloadClientSelect]); return (
{name}
{translate('PrioritySettings', { priority })}
); } export default SelectDownloadClientRow;