Files
poyraz-portfolio/lib/command-palette-links.ts
T

40 lines
778 B
TypeScript

import { NAV_LINKS, SOCIAL_LINKS } from "@/lib/links";
export type CommandPaletteItem = {
id: string;
label: string;
href: string;
icon: string;
external?: boolean;
};
export type CommandPaletteGroup = {
id: string;
heading: string;
items: CommandPaletteItem[];
};
export const COMMAND_PALETTE_GROUPS: CommandPaletteGroup[] = [
{
id: "navigation",
heading: "Navigation",
items: NAV_LINKS.map((item) => ({
id: item.id,
label: item.label,
href: item.href,
icon: "mdi:compass-outline",
})),
},
{
id: "social",
heading: "Social",
items: SOCIAL_LINKS.map((item) => ({
id: item.id,
label: item.label,
href: item.href,
icon: item.icon,
external: true,
})),
},
] as const;