Files
dashboards/apps/business/src/pages/BlogPage.tsx
T
Alireza HassaniandCursor cc94b929e0 Add e-payment UI, checkout payment result, and legacy migrate domain lookup.
Wire Mellat settings in business dashboard, customer bank return page with payment details, and super-admin migrate modal domain confirmation.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-13 09:51:22 +03:30

80 lines
2.1 KiB
TypeScript

import { FileText, PlusCircle, FolderTree, Settings } from 'lucide-react'
import { SectionCard } from '../components/SectionCard'
import { Breadcrumbs } from '../components/Breadcrumbs'
import { PageTitle } from '../components/PageTitle'
import { useT } from '../i18n/useT'
import type { BusinessMessageKey } from '../i18n/messages'
import styles from '../components/PageContent.module.css'
const blogSections: {
icon: typeof FileText
titleKey: BusinessMessageKey
descKey: BusinessMessageKey
linkKey: BusinessMessageKey
href: string
}[] = [
{
icon: FileText,
titleKey: 'nav.blog.list',
descKey: 'blog.card.list.desc',
linkKey: 'blog.card.list.link',
href: '/blog/list',
},
{
icon: PlusCircle,
titleKey: 'nav.blog.new',
descKey: 'blog.card.new.desc',
linkKey: 'blog.card.new.link',
href: '/blog/new',
},
{
icon: FolderTree,
titleKey: 'blog.card.categories.title',
descKey: 'blog.card.categories.desc',
linkKey: 'blog.card.categories.link',
href: '/blog/categories',
},
{
icon: Settings,
titleKey: 'nav.blog.settings',
descKey: 'blog.card.settings.desc',
linkKey: 'blog.card.settings.link',
href: '/blog/settings',
},
]
export function BlogPage() {
const t = useT()
return (
<main className={styles.content}>
<Breadcrumbs
items={[
{ label: 'Dashboard', href: '/' },
{ label: 'Content', href: '/content' },
{ label: 'Blog' },
]}
/>
<div className={styles.pageHeader}>
<div>
<PageTitle en="BLOG">{t('title.blog')}</PageTitle>
<p className={styles.pageSubtitle}>{t('blog.page.subtitle')}</p>
</div>
</div>
<div className={styles.gridHome}>
{blogSections.map((section) => (
<SectionCard
key={section.href}
icon={section.icon}
title={t(section.titleKey)}
description={t(section.descKey)}
linkText={t(section.linkKey)}
href={section.href}
/>
))}
</div>
</main>
)
}