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

36 lines
1.1 KiB
TypeScript
Raw Normal View History

import clsx from 'clsx';
2024-04-01 19:07:20 +03:00
import { useConceptOptions } from '@/context/OptionsContext';
import { external_urls } from '@/utils/constants';
import TextURL from '../components/ui/TextURL';
2023-07-15 17:46:19 +03:00
function Footer() {
2024-04-01 19:07:20 +03:00
const { noNavigation, noFooter } = useConceptOptions();
2023-12-17 20:19:28 +03:00
if (noNavigation || noFooter) {
return null;
}
2023-07-15 17:46:19 +03:00
return (
2023-12-28 14:04:44 +03:00
<footer
className={clsx(
'z-navigation',
2024-06-05 18:07:02 +03:00
'mx-auto',
2024-06-06 22:01:28 +03:00
'px-3 py-2 flex flex-col items-center gap-1',
2024-01-16 13:47:29 +03:00
'text-xs sm:text-sm select-none whitespace-nowrap'
2023-12-28 14:04:44 +03:00
)}
>
<div className='flex gap-3'>
<TextURL text='Библиотека' href='/library' color='clr-footer' />
<TextURL text='Справка' href='/manuals' color='clr-footer' />
<TextURL text='Центр Концепт' href={external_urls.concept} color='clr-footer' />
2023-12-28 14:04:44 +03:00
<TextURL text='Экстеор' href='/manuals?topic=exteor' color='clr-footer' />
</div>
<div>
<p className='clr-footer'>© 2024 ЦИВТ КОНЦЕПТ</p>
</div>
</footer>
);
2023-07-15 17:46:19 +03:00
}
2023-12-28 14:04:44 +03:00
export default Footer;