'use client';

import Styles from '../styles/layout.module.scss';
import Link from 'next/link';
import { useConfigContext } from '@/contexts/configProvider';

export default function Footer()
{
	const config = useConfigContext();

    return (
        <footer id='footer' className={`${Styles.footer} px-4`}>
            <ol>
                <li>
                    <Link href='https://dpot.company'>회사소개</Link>
                </li>
                <li>
                    <Link href='/docs/teams'>이용약관</Link>
                </li>
                <li>
                    <Link href='/docs/privacy'>개인정보처리방침</Link>
                </li>
                <li>
                    <Link href={'https://www.ftc.go.kr/bizCommPop.do?wrkr_no=' + config.company.regNo} target='_blank' rel='noopener noreferrer'>
                        사업자 정보
                    </Link>
                </li>
                <li>© 2025 DPOT. All rights reserved.</li>
            </ol>
        </footer>
    );
}