openpanel/website/src/refine-theme/common-header/constants.ts
2025-05-15 19:09:12 +02:00

122 lines
3.1 KiB
TypeScript

import {
DocumentsIcon,
IntegrationsIcon,
TutorialIcon,
ExamplesIcon,
AwesomeIcon,
ContributeIcon,
RefineWeekIcon,
HackathonsIcon,
AboutUsIcon,
StoreIcon,
MeetIcon,
BlogIcon,
NewBadgeIcon,
} from "../icons/popover";
export type NavbarPopoverItemType = {
isPopover: true;
label: string;
items: {
label: string;
description: string;
link: string;
icon: React.FC;
}[];
};
export type NavbarItemType = {
isPopover?: false;
label: string;
icon?: React.FC;
href?: string;
};
export type MenuItemType = NavbarPopoverItemType | NavbarItemType;
export const MENU_ITEMS: MenuItemType[] = [
{
isPopover: true,
label: "Resources",
items: [
{
label: "How-to Guides",
description: "Everything you need to get started.",
link: "/docs/articles/intro/",
icon: ExamplesIcon,
},
{
label: "Install Command",
description: "Customize installation.",
link: "https://community.openpanel.org/",
icon: AwesomeIcon,
},
{
label: "Changelog",
description: "Latest version and updates.",
link: "/docs/changelog/intro/",
icon: BlogIcon,
},
],
},
{
isPopover: false,
label: "Enterprise",
href: "/beta",
},
{
isPopover: false,
label: "Live Demo",
href: "/demo",
icon: NewBadgeIcon,
},
{
isPopover: true,
label: "Community",
items: [
{
label: "Documentation",
description: "Everything you need to get started.",
link: "/docs/",
icon: DocumentsIcon,
},
{
label: "Forums",
description: "Join our growing community!",
link: "https://community.openpanel.org/",
icon: ContributeIcon,
},
{
label: "Translations",
description: "Help us improve OpenPanel!",
link: "https://github.com/stefanpejcic/openpanel-translations",
icon: HackathonsIcon,
},
],
},
// {
// isPopover: true,
// label: "Company",
// items: [
// {
// label: "About Us",
// description: "Team & company information.",
// link: "/about",
// icon: AboutUsIcon,
// },
// {
// label: "Become a Partner",
// description: "Help us spread the word!",
// link: "mailto:info@openpanel.co",
// icon: StoreIcon,
// },
// {
// label: "Meet OpenPanel",
// description: "Call us for any questions",
// link: "mailto:info@openpanel.co",
// icon: MeetIcon,
// },
// ],
// },
];