'use client';

import useGlobalStore from '@/config/use-global';
import { useTranslations } from 'next-intl';
import Link from 'next/link';

export default function FooterCopyright() {
  const { common } = useGlobalStore();
  const { site } = common;
  const t = useTranslations('auth');

  return (
    <footer className={'fixed bottom-6 z-50 w-full'}>
      <div className={'container pr-0 text-right'}>
        <strong className='text-foreground'>{site.site_name}</strong> © All rights reserved.
        <div>
          <Link href='/tos' className='underline'>
            {t('tos')}
          </Link>
          <Link href='/privacy-policy' className='ml-2 underline'>
            {t('privacyPolicy')}
          </Link>
        </div>
      </div>
    </footer>
  );
}
