'use client';

import Link from 'next/link';
import { Button, Space } from 'antd';
import { projetosParametrosPaths } from '@/lib/routes/projetosParametrosPaths';

export type ProjetoSoftwareParametroLink = {
    href: string;
    label: string;
};

export function ProjetoSoftwareParametrosLinks({
    links = [],
}: {
    links?: ProjetoSoftwareParametroLink[];
}) {
    return (
        <Space wrap size={8}>
            {links.map((item) => (
                <Link key={item.href} href={item.href}>
                    <Button size="small">{item.label}</Button>
                </Link>
            ))}
            <Link href={projetosParametrosPaths.hub}>
                <Button size="small" type="default">
                    Configurações → Projetos
                </Button>
            </Link>
        </Space>
    );
}
