ConceptPortal-public/rsconcept/frontend/src/components/Footer.tsx

33 lines
988 B
TypeScript
Raw Normal View History

import clsx from 'clsx';
2023-12-17 20:19:28 +03:00
import { useConceptTheme } from '@/context/ThemeContext';
import { urls } from '@/utils/constants';
2023-12-08 19:24:08 +03:00
import TextURL from './Common/TextURL';
2023-07-15 17:46:19 +03:00
function Footer() {
2023-12-17 20:19:28 +03:00
const { noNavigation, noFooter } = useConceptTheme();
if (noNavigation || noFooter) {
return null;
}
2023-07-15 17:46:19 +03:00
return (
<footer tabIndex={-1}
className={clsx(
2023-12-17 20:19:28 +03:00
'z-navigation',
'px-4 py-2 flex flex-col items-center gap-1',
'text-sm select-none whitespace-nowrap'
)}
>
<div className='flex gap-3'>
2023-12-08 19:24:08 +03:00
<TextURL text='Библиотека' href='/library' color='clr-footer'/>
<TextURL text='Справка' href='/manuals' color='clr-footer'/>
<TextURL text='Центр Концепт' href={urls.concept} color='clr-footer'/>
<TextURL text='Экстеор' href='/manuals?topic=exteor' color='clr-footer'/>
</div>
<div>
<p className='clr-footer'>© 2023 ЦИВТ КОНЦЕПТ</p>
</div>
</footer>);
2023-07-15 17:46:19 +03:00
}
2023-12-08 19:24:08 +03:00
export default Footer;