import size from 'lodash/size' import { PlaylistTypes } from 'features/MatchPage/types' import type { PlaylistOption, Playlists } from 'features/MatchPage/types' import type { MatchInfo } from 'requests' import { DropdownSection } from './components/DropdownSection' import { MatchPlaylists } from './components/MatchPlaylists' import { SideInterviews } from './components/SideInterviews' import { PlayersPlaylists } from './components/PlayersPlaylists' import { ButtonBox, Container, DropdownWrapper, List, SettingsButton, Wrapper, } from './styled' type Props = { onSelect: (option: PlaylistOption) => void, openPopup: () => void, playlists: Playlists, profile: MatchInfo, selectedPlaylist?: PlaylistOption, } export const isEqual = (target: PlaylistOption, selected?: PlaylistOption) => ( target.id === selected?.id && target.type === selected.type ) export const MatchSidePlaylists = ({ onSelect, openPopup, playlists, profile, selectedPlaylist, }: Props) => { const playersCount = size(playlists.players.team1) + size(playlists.players.team2) return ( ) }