Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { useContext } from 'react';
- import { AppContext, AppContextTypes } from '../../utils/AppContext';
- import NoCopyrightText from './NoCopyrightText';
- const NoCopyright = () => {
- const { defaultLanguage } = useContext<AppContextTypes>(AppContext);
- const { noCopyRight } =
- defaultLanguage === 'bg-BG'
- ? (NoCopyrightText.bg as { noCopyRight: string })
- : (NoCopyrightText.en as { noCopyRight: string });
- return (
- <>
- <p>{noCopyRight}</p>
- </>
- );
- };
- export default NoCopyright;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement