File size: 738 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
import React, { memo, FC } from 'react';
import './index.module.scss';
import Broadcast from '@/components/svgIcon';
import { il8n } from '@/language';
import { defaultLanguage } from '@/core/config';
import { languageType } from 'types';
const Index: FC<{ handle: Function; language: languageType | undefined }> = memo(function Index({
handle,
language,
}) {
const handleFunc = () => {
handle();
};
return (
<div className="end">
<div className="replay">
<div className="cicle" onClick={handleFunc}>
<Broadcast iconClass="replay" fill="#fff" fontSize={'37px'} />
</div>
<p>{il8n(language || defaultLanguage, 'replay')}</p>
</div>
</div>
);
});
export default Index;
|