import React from 'react'; import { Layout, Button, Typography, Divider, Flex } from 'antd'; import { ArrowLeftOutlined } from '@ant-design/icons'; import { useDispatch, useSelector } from 'react-redux'; import { switchToOperationPanel } from '../../../states/panelSwitchSliceForView'; import { selectAllViewers, selectAllViewerUrls, selectSelectedViewers, setSelectedViewers, } from '@/states/view/viewerContainerSlice'; import { RootState } from '@/states/store'; import Icon from '@/components/Icon'; import '@/themes/truncateText.css'; const { Header, Content } = Layout; const { Title, Text } = Typography; const FunctionButton = ({ title, action, iconName, onClick, }: { title: string; action: string; iconName: string; onClick: () => void; }) => { return (