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

18 lines
495 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';
interface LogoProps {
title?: boolean;
[props: string]: any;
}
const Logo = ({ title = false, ...props }: LogoProps) => {
const { t } = useTranslation();
const src = title ? logoWithText : logo;
return <Image src={src} alt={t('logo.alt')} className="d-block" {...props} />;
};
export default Logo;