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.
40 lines
1.0 KiB
40 lines
1.0 KiB
import Image from 'next/image';
|
|
import {useTranslation} from 'next-i18next';
|
|
import {Row, Col} from 'reactstrap';
|
|
import twitter from '../public/twitter.svg';
|
|
import facebook from '../public/facebook.svg';
|
|
|
|
|
|
interface ShareInterface {
|
|
title?: string;
|
|
}
|
|
|
|
const ShareRow = ({title}: ShareInterface) => {
|
|
const {t} = useTranslation('resource');
|
|
return (
|
|
<Row className="sharing justify-content-md-center">
|
|
<Col className="col-auto">{title || t('common.share')}</Col>
|
|
<Col className="col-auto">
|
|
<a
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
href="https://www.facebook.com/mieuxvoter.fr/"
|
|
>
|
|
<Image height={22} width={22} src={facebook} alt="icon facebook" />
|
|
</a>
|
|
</Col>
|
|
<Col className="col-auto">
|
|
<a
|
|
target="_blank"
|
|
rel="noopener noreferrer"
|
|
href="https://twitter.com/mieux_voter"
|
|
>
|
|
<Image height={22} width={22} src={twitter} alt="icon twitter" />
|
|
</a>
|
|
</Col>
|
|
</Row>
|
|
);
|
|
};
|
|
|
|
export default ShareRow;
|