2025-03-10 12:34:43 +08:00
|
|
|
import {
|
2025-03-25 00:21:09 +08:00
|
|
|
BriefcaseIcon,
|
2025-03-12 08:52:23 +08:00
|
|
|
ChartBarSquareIcon,
|
2025-03-10 12:34:43 +08:00
|
|
|
ClipboardDocumentCheckIcon,
|
|
|
|
|
DocumentCurrencyDollarIcon,
|
2025-03-12 08:48:03 +08:00
|
|
|
MegaphoneIcon,
|
2025-03-12 08:52:23 +08:00
|
|
|
NewspaperIcon,
|
|
|
|
|
PresentationChartLineIcon,
|
2025-03-10 12:34:43 +08:00
|
|
|
TagIcon,
|
2025-03-12 08:52:23 +08:00
|
|
|
UsersIcon,
|
2025-03-14 23:50:27 +08:00
|
|
|
} from '@heroicons/react/24/solid'
|
2025-03-15 22:25:06 +08:00
|
|
|
import type { ComponentType, SVGProps } from 'react'
|
2025-02-23 12:18:10 +08:00
|
|
|
|
|
|
|
|
type TMenu = {
|
|
|
|
|
group: string
|
|
|
|
|
items: {
|
|
|
|
|
title: string
|
|
|
|
|
url: string
|
2025-03-15 22:25:06 +08:00
|
|
|
icon: ComponentType<SVGProps<SVGSVGElement>>
|
2025-02-23 12:18:10 +08:00
|
|
|
}[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const MENU: TMenu[] = [
|
|
|
|
|
{
|
|
|
|
|
group: 'Menu',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
|
|
|
|
title: 'Dashboard',
|
2025-02-28 12:19:05 +08:00
|
|
|
url: '/lg-admin',
|
2025-03-12 08:52:23 +08:00
|
|
|
icon: ChartBarSquareIcon,
|
2025-02-23 12:18:10 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'User',
|
2025-02-28 12:19:05 +08:00
|
|
|
url: '/lg-admin/users',
|
2025-03-12 08:52:23 +08:00
|
|
|
icon: UsersIcon,
|
2025-02-23 12:18:10 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-03-09 14:54:18 +08:00
|
|
|
title: 'Artikel',
|
2025-02-28 12:19:05 +08:00
|
|
|
url: '/lg-admin/contents',
|
2025-03-12 08:52:23 +08:00
|
|
|
icon: NewspaperIcon,
|
2025-02-23 12:18:10 +08:00
|
|
|
},
|
|
|
|
|
{
|
2025-03-12 08:48:03 +08:00
|
|
|
title: 'Banner Iklan',
|
2025-02-28 12:19:05 +08:00
|
|
|
url: '/lg-admin/advertisements',
|
2025-03-12 08:48:03 +08:00
|
|
|
icon: MegaphoneIcon,
|
2025-02-23 12:18:10 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Subscription',
|
2025-02-28 12:19:05 +08:00
|
|
|
url: '/lg-admin/subscriptions',
|
2025-03-12 08:52:23 +08:00
|
|
|
icon: PresentationChartLineIcon,
|
2025-02-23 12:18:10 +08:00
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
group: 'Others',
|
|
|
|
|
items: [
|
|
|
|
|
{
|
2025-03-07 15:04:22 +08:00
|
|
|
title: 'Kategori',
|
|
|
|
|
url: '/lg-admin/categories',
|
|
|
|
|
icon: ClipboardDocumentCheckIcon,
|
2025-02-23 12:18:10 +08:00
|
|
|
},
|
2025-03-07 14:56:00 +07:00
|
|
|
{
|
|
|
|
|
title: 'Tag',
|
|
|
|
|
url: '/lg-admin/tags',
|
|
|
|
|
icon: TagIcon,
|
|
|
|
|
},
|
2025-03-09 14:40:55 +07:00
|
|
|
{
|
|
|
|
|
title: 'Subscribe Plan',
|
|
|
|
|
url: '/lg-admin/subscribe-plan',
|
2025-03-10 12:34:43 +08:00
|
|
|
icon: DocumentCurrencyDollarIcon,
|
2025-03-09 14:40:55 +07:00
|
|
|
},
|
2025-03-25 00:21:09 +08:00
|
|
|
{
|
|
|
|
|
title: 'Staff',
|
|
|
|
|
url: '/lg-admin/staffs',
|
|
|
|
|
icon: BriefcaseIcon,
|
|
|
|
|
},
|
2025-02-23 12:18:10 +08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
]
|
2025-03-09 14:54:18 +08:00
|
|
|
|
|
|
|
|
export const SUB_MENU = [
|
|
|
|
|
{
|
|
|
|
|
title: 'Buat Artikel',
|
|
|
|
|
path: '/lg-admin/contents/create',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Update Artikel',
|
|
|
|
|
path: '/lg-admin/contents/update',
|
|
|
|
|
},
|
2025-03-09 15:31:10 +08:00
|
|
|
{
|
|
|
|
|
title: 'Buat Kategori',
|
|
|
|
|
path: '/lg-admin/categories/create',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Update Kategori',
|
|
|
|
|
path: '/lg-admin/categories/update',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Buat Tag',
|
|
|
|
|
path: '/lg-admin/tags/create',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Update Tag',
|
|
|
|
|
path: '/lg-admin/tags/update',
|
|
|
|
|
},
|
2025-03-09 14:54:18 +08:00
|
|
|
]
|