// Copyright 2023 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import React from 'react'; import { Environment, getEnvironment } from '../environment'; import type { LocalizerType } from '../types/I18N'; import type { NavTabPanelProps } from './NavTabs'; import { WhatsNewLink } from './WhatsNewLink'; type ChatsTabProps = Readonly<{ i18n: LocalizerType; navTabsCollapsed: boolean; onToggleNavTabsCollapse: (navTabsCollapsed: boolean) => void; prevConversationId: string | undefined; renderConversationView: () => JSX.Element; renderLeftPane: (props: NavTabPanelProps) => JSX.Element; renderMiniPlayer: (options: { shouldFlow: boolean }) => JSX.Element; selectedConversationId: string | undefined; showWhatsNewModal: () => unknown; }>; export function ChatsTab({ i18n, navTabsCollapsed, onToggleNavTabsCollapse, prevConversationId, renderConversationView, renderLeftPane, renderMiniPlayer, selectedConversationId, showWhatsNewModal, }: ChatsTabProps): JSX.Element { return ( <>