@theguild/components
Version:
52 lines (51 loc) • 1.18 kB
JavaScript
import { PRODUCTS_MENU_LIST } from "../products";
function sharedMetaItems(options) {
return {
products: {
title: "Products",
type: "menu",
items: PRODUCTS_MENU_LIST
},
ecosystem: {
title: "Ecosystem",
type: "page",
...options.product !== "HIVE" && { href: "https://the-guild.dev/graphql/hive/ecosystem" }
},
blog: {
title: "Blog",
type: "page",
href: "https://the-guild.dev/graphql/hive/blog"
},
github: {
title: "GitHub",
type: "page",
href: options.githubUrl
},
"the-guild": {
title: "The Guild",
type: "menu",
items: {
"about-us": {
title: "About Us",
href: "https://the-guild.dev/about-us"
},
"brand-assets": {
title: "Brand Assets",
href: "https://the-guild.dev/logos"
},
blog: {
title: "The Guild Blog",
href: "https://the-guild.dev/blog"
}
}
},
"graphql-foundation": {
title: "GraphQL Foundation",
type: "page",
href: "https://graphql.org/community/foundation"
}
};
}
export {
sharedMetaItems
};