diff --git a/lib/static/new-ui/features/suites/components/BrowsersSelect/BrowserIcon.tsx b/lib/static/new-ui/features/suites/components/BrowsersSelect/BrowserIcon.tsx new file mode 100644 index 000000000..568f60aab --- /dev/null +++ b/lib/static/new-ui/features/suites/components/BrowsersSelect/BrowserIcon.tsx @@ -0,0 +1,37 @@ +import {isString} from 'lodash'; +import React, {ReactNode} from 'react'; + +const valueToIcon = { + google: 'chrome', + chrome: 'chrome', + firefox: 'firefox', + safari: 'safari', + edge: 'edge', + yandex: 'yandex', + yabro: 'yandex', + ie: 'internet-explorer', + explorer: 'internet-explorer', + opera: 'opera', + phone: 'mobile', + mobile: 'mobile', + tablet: 'tablet', + ipad: 'tablet' +} as const; + +export function BrowserIcon({name: browser}: {name: string}): ReactNode { + const getIcon = (iconName: string): ReactNode =>