Files
dashboards/app/manage/[meshkeeId]/blog/page.tsx
T

34 lines
948 B
TypeScript

"use client";
import Link from "next/link";
import { useParams } from "next/navigation";
import { BusinessListHeader } from "@/components/business/BusinessPageChrome";
import BlogPanel from "@/components/catalog/BlogPanel";
import { en } from "@/lib/i18n/en";
import styles from "@/components/BusinessDetailsPage.module.css";
export default function ManageBusinessBlogPage() {
const params = useParams<{ meshkeeId: string }>();
const meshkeeId = String(params.meshkeeId ?? "");
const addHref = `/manage/${encodeURIComponent(meshkeeId)}/blog/new`;
return (
<>
<BusinessListHeader
title={en.blog.title}
lead={en.blog.lead}
action={
<Link href={addHref} className={`outline-btn ${styles.actionBtn}`}>
{en.blog.add}
</Link>
}
/>
<BlogPanel
meshkeeId={meshkeeId}
emptyLabel={en.blog.empty}
addHref={addHref}
/>
</>
);
}