You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mvfront-react/components/Logo.tsx

13 lines
420 B

import Image from 'next/image';
import logoWithText from '../public/logos/logo.svg';
import logo from '../public/logos/logo-footer.svg';
import { useTranslation } from 'next-i18next';
const Logo = ({ title = undefined, ...props }) => {
const { t } = useTranslation();
const src = title ? logoWithText : logo;
return <Image src={src} alt={t('logo.alt')} className="d-block" {...props} />;
};
export default Logo;