feat: update logo assets and localization support

This commit is contained in:
2026-06-11 20:07:23 +03:30
parent 74c8db6d01
commit 90bd836ce2
4 changed files with 90 additions and 19 deletions

View File

@@ -1,6 +1,8 @@
import LogoSvg from '@/assets/logo.svg';
import LogoFaSvg from '@/assets/logo-fa.svg';
import LogoEnSvg from '@/assets/logo-en.svg';
import LogoIconSvg from '@/assets/logo_icon.svg';
import { Box, type SxProps } from '@mui/material';
import { useTranslation } from 'react-i18next';
interface LogoProps {
boxSx?: SxProps;
@@ -8,11 +10,13 @@ interface LogoProps {
}
function Logo({ boxSx, isIcon = false }: LogoProps) {
// TODO: handle transition
const { i18n } = useTranslation();
const isFarsi = i18n.language === 'fa' || i18n.language === 'fa-IR';
return (
<Box
component="img"
src={isIcon ? LogoIconSvg : LogoSvg}
src={isIcon ? LogoIconSvg : isFarsi ? LogoFaSvg : LogoEnSvg}
sx={{
width: isIcon ? '30px' : '120px',
height: 'auto',