Files
supabase/apps/www/data/nav.tsx
Ivan Vasilov ddd52215dd fix: Optimize json data when including it in the www nav (#30041)
* Add a script to separate the latest blog posts from the contentlayer json into a separate json.

* Use the new json data for the latest blog posts.
2024-10-24 11:08:04 +02:00

41 lines
885 B
TypeScript

import DevelopersDropdown from '~/components/Nav/DevelopersDropdown'
import ProductDropdown from '~/components/Nav/ProductDropdown'
import { data as DevelopersData } from 'data/Developers'
import SolutionsData from 'data/Solutions'
export const getMenu = () => ({
primaryNav: [
{
title: 'Product',
hasDropdown: true,
dropdown: <ProductDropdown />,
dropdownContainerClassName: 'rounded-xl',
subMenu: SolutionsData,
},
{
title: 'Developers',
hasDropdown: true,
dropdown: <DevelopersDropdown />,
dropdownContainerClassName: 'rounded-xl',
subMenu: DevelopersData,
},
{
title: 'Enterprise',
url: '/enterprise',
},
{
title: 'Pricing',
url: '/pricing',
},
{
title: 'Docs',
url: '/docs',
},
{
title: 'Blog',
url: '/blog',
},
],
})