const generateA = (url: string, icon: string, title: string) => { return `${icon}`; }; const socials = [ generateA( "https://twitter.com/folke", "", "Twitter", ), generateA( "https://github.com/folke/lazy.nvim", "", "Github", ), generateA( "https://github.com/folke/lazy.nvim/discussions", '', "Github Discussions", ), ]; export default socials.map((value) => ({ position: "right", type: "html", value, }));