import { Avatar } from 'components/shared/Avatar'; import { Overwrite, UseComboboxGetItemPropsReturnValue } from 'downshift'; import { Project } from 'gql-client'; import { ComponentPropsWithoutRef, forwardRef } from 'react'; import { OmitCommon } from 'types/common'; import { cn } from 'utils/classnames'; import { getInitials } from 'utils/geInitials'; /** * Represents a type that merges ComponentPropsWithoutRef<'li'> with certain exclusions. * @type {MergedComponentPropsWithoutRef} */ type MergedComponentPropsWithoutRef = OmitCommon< ComponentPropsWithoutRef<'button'>, Omit< Overwrite, 'index' | 'item' > >; interface ProjectSearchBarItemProps extends MergedComponentPropsWithoutRef { item: Project; active?: boolean; } const ProjectSearchBarItem = forwardRef< HTMLButtonElement, ProjectSearchBarItemProps >(({ item, active, ...props }, ref) => { return ( ); }); ProjectSearchBarItem.displayName = 'ProjectSearchBarItem'; export { ProjectSearchBarItem };