// Copyright (C) 2017-2024 Smart code 203358507 import React, { useCallback, useMemo, forwardRef } from 'react'; import classNames from 'classnames'; import { Button } from 'stremio/components'; import styles from './Option.less'; import Icon from '@stremio/stremio-icons/react'; type Props = { option: MultiselectMenuOption; selectedValue?: any; onSelect: (value: any) => void; }; const Option = forwardRef(({ option, selectedValue, onSelect }, ref) => { const selected = useMemo(() => option?.value === selectedValue, [option, selectedValue]); const handleClick = useCallback(() => { onSelect(option.value); }, [onSelect, option.value]); return ( ); }); Option.displayName = 'Option'; export default Option;