import React, { ComponentProps, PropsWithChildren } from 'react' import { CommandItem } from '~components/common/Command' import './index.scss' import classNames from 'classnames' interface Props { className?: string icon?: { alt: string src: string } extra: boolean selected: boolean value: string | number onSelect: () => void } const RaidItem = React.forwardRef>( function Item( { icon, value, extra, selected, children, ...props }: PropsWithChildren, forwardedRef ) { const classes = classNames( { SelectItem: true, Raid: true }, props.className ) return ( {icon ? {icon.alt} : ''} {children} {selected ? Selected : ''} {extra ? EX : ''} ) } ) RaidItem.defaultProps = { extra: false, selected: false, } export default RaidItem