import { sectionLinks } from "../../lib/linkList/sectionLinks";
import Link from "next/link";
import armoryLinks from "../../lib/linkList/sectionLinks";

let linksArray = [
    sectionLinks.UPPERS,
    sectionLinks.LOWERS,
    sectionLinks.BARRELS,
    sectionLinks.OPTICS,
    sectionLinks.ACCESSORIES,  
];
export const Armory = (props:any) => {
    return (
        (<div>
            <h4>{props.titleText}</h4>
            <ul>
                {linksArray.map((link, index) => (
                    <li key={index}>
                        <Link href={link.URL} legacyBehavior>
                            {link.TEXT}   
                        </Link>
                    </li>
                ))}
            </ul>
        </div>)
    );
}
export default Armory;