import React from 'react' import { Box, HStack } from '../elements/LayoutPrimitives' import { StyledImg, StyledText } from '../elements/StyledText' import { AngleDownIcon } from '../tokens/icons/AngleDownIcon' import { Button } from './Button' import { Dropdown, DropdownOption, DropdownSeparator } from './DropdownElements' import { ChromeIcon } from './images/ChromeIcon' import { EdgeIcon } from './images/EdgeIcon' import { FirefoxIcon } from './images/FirefoxIcon' import { SafariIcon } from './images/SafariIcon' const icons = { 'Google Chrome': , 'Microsoft Edge': , Firefox: , Safari: , } const browserOptions = [ 'Google Chrome', 'Firefox', 'Microsoft Edge', 'Safari', ] as const type browserType = typeof browserOptions[number] const BrowserOption: React.FC<{ browser: browserType }> = ({ browser }) => { return ( {icons[browser as browserType]} {browser} ) } export default function ExtensionsInstallHelp(): JSX.Element { const [browserValue, setBrowserValue] = React.useState( browserOptions[0] ) const handleBrowserUpdate = (e: any) => { setBrowserValue(e) } return ( Learn more Install Browser Extensions Installing the Omnivore browser extension is the best way to save pages to Omnivore from your computer.
Learn more about the browser extension here.
{icons[browserValue]} {browserValue} } > {browserOptions.map((item, idx) => (
setBrowserValue(item)}> {idx !== browserOptions.length - 1 && ( )}
))}
) }