feat: prompts admin-only, add isOpen field to Prompt model

This commit is contained in:
AyrisAI
2026-07-23 17:45:59 +03:00
parent 29bbac3c39
commit 0ef8af2525
5 changed files with 34 additions and 183 deletions
+1 -2
View File
@@ -3,7 +3,7 @@
import Link from 'next/link';
import { usePathname } from 'next/navigation';
import { useTranslations } from 'next-intl';
import { Code2, BookOpen, Mail, Sparkles, Terminal } from 'lucide-react';
import { Code2, BookOpen, Mail, Sparkles } from 'lucide-react';
export function Navbar({ locale }: { locale: string }) {
const t = useTranslations('nav');
@@ -13,7 +13,6 @@ export function Navbar({ locale }: { locale: string }) {
{ href: `/${locale}`, label: t('home'), icon: Sparkles },
{ href: `/${locale}/lessons`, label: t('lessons'), icon: Code2 },
{ href: `/${locale}/cheatsheets`, label: t('cheatsheets'), icon: BookOpen },
{ href: `/${locale}/prompts`, label: 'Prompts', icon: Terminal },
{ href: `/${locale}/contact`, label: t('contact'), icon: Mail },
];