import { TickIcon } from '@bnb-chain/icons'; import { Center, Flex, css, useColorMode } from '@chakra-ui/react'; import { useContext } from 'react'; import { GroupBase, OptionProps } from 'react-select'; import { theme } from '../../modules/theme'; import { Space } from '../Space'; import { Context } from './context'; export const SelectOption = >({ innerRef, innerProps, children, ...otherProps }: OptionProps) => { const { colorMode } = useColorMode(); const { styles } = useContext(Context); return ( {children} {otherProps.isSelected && ( <>
)}
); };