import { MoonOutlined, SunOutlined, UserOutlined } from "@ant-design/icons"; import { Button, Flex, Image, Layout, Switch, Tooltip } from "antd"; import { ReactNode } from "react"; import { toggleTheme } from "features/theme/themeSlice.ts"; import useBreakPoint from "hooks/useBreakPoint.ts"; import { useTranslation } from "react-i18next"; import { useAppDispatch, useAppSelector } from "redux/hooks.ts"; import { colors, ProBlack2 } from "ThemeConstants.ts"; import LangSelect from "./components/langSelect/LangSelect.tsx"; import HeaderNav from "./HeaderNav.tsx"; import "./styles.css"; const { Content } = Layout; type AppLayoutProps = { children: ReactNode; }; export const AppLayout = ({ children }: AppLayoutProps) => { const dispatch = useAppDispatch(); const { t } = useTranslation(); const { themeName } = useAppSelector((state) => state.theme); const { isDesktop } = useBreakPoint(); return ( <> {isDesktop && (