import Stack, { type StackProps } from "@mui/material/Stack"; import Box from "@mui/material/Box"; import Typography from "@mui/material/Typography"; import { useTheme } from "@mui/material/styles"; import { toggleSidebar } from "@/Features/UI/uiSlice.js"; import { useDispatch } from "react-redux"; import { useTranslation } from "react-i18next"; import useSidebar from "@/Hooks/useSidebar"; export const Logo = (props: StackProps) => { const { t } = useTranslation(); const theme = useTheme(); const dispatch = useDispatch(); const { collapsed } = useSidebar(); return ( { dispatch(toggleSidebar()); }} sx={{ cursor: "pointer" }} {...props} > C {" "} {t("common.appName")} ); };