mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
17 lines
736 B
TypeScript
17 lines
736 B
TypeScript
// Copyright 2025 Signal Messenger, LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
import React, { memo } from 'react';
|
|
import { useSelector } from 'react-redux';
|
|
import { PanelHeader } from '../../components/conversation/media-gallery/PanelHeader.dom.js';
|
|
import { getMediaGalleryState } from '../selectors/mediaGallery.std.js';
|
|
import { getIntl } from '../selectors/user.std.js';
|
|
import { useMediaGalleryActions } from '../ducks/mediaGallery.preload.js';
|
|
|
|
export const SmartAllMediaHeader = memo(function SmartAllMediaHeader() {
|
|
const { tab } = useSelector(getMediaGalleryState);
|
|
const { setTab } = useMediaGalleryActions();
|
|
const i18n = useSelector(getIntl);
|
|
|
|
return <PanelHeader i18n={i18n} tab={tab} setTab={setTab} />;
|
|
});
|