import { translate } from '../../helpers/l10n';
import './MultipleSelectionHint.css';
-interface Props {
+export interface MultipleSelectionHintProps {
options: number;
values: number;
}
-export default function MultipleSelectionHint({ options, values }: Props) {
+const MAX_OPTIONS = 2;
+
+export default function MultipleSelectionHint({ options, values }: MultipleSelectionHintProps) {
// do not render if nothing is selected or there are less than 2 possible options
- if (values === 0 || options < 2) {
+ if (values === 0 || options < MAX_OPTIONS) {
return null;
}
shortcuts.section.global=Global
shortcuts.section.global.search=quickly open search bar
shortcuts.section.global.shortcuts=open this window
-shortcuts.section.global.facets.multiselection=Ctrl + click to add to selection
-shortcuts.section.global.facets.multiselection.mac=\u2318 + click to add to selection
+shortcuts.section.global.facets.multiselection=Press Ctrl to add to selection
+shortcuts.section.global.facets.multiselection.mac=Press \u2318 to add to selection
shortcuts.section.issues=Issues Page
shortcuts.section.issues.navigate_between_issues=navigate between issues