26 lines
967 B
TypeScript
26 lines
967 B
TypeScript
import { manufacturerFindAll } from "../../../actions/manufacturer.actions";
|
|
import { articleFindAll } from "../../../actions/article.actions";
|
|
import Link from "next/link";
|
|
import { sites } from "../../../../../apps/frontend/_config/sites";
|
|
import { ArticleList } from "../../../components/article/articleList";
|
|
import { Icon, CirclePlus } from "lucide-react";
|
|
|
|
interface Props { }
|
|
|
|
export default async function ArticlePage({ }: Props) {
|
|
|
|
|
|
const manufacturer = await manufacturerFindAll();
|
|
const artikel = await articleFindAll();
|
|
|
|
if (!manufacturer) return <div>Keine Hersteller gefunden</div>
|
|
|
|
return <div className="p-4 mb-4">
|
|
<div className="">
|
|
<Link href={`${sites.article.new.url}`} className="text-sky-300 text-black"><CirclePlus color="green" />neu </Link>
|
|
</div>
|
|
<ArticleList articles={artikel}></ArticleList>
|
|
<Link href={`${sites.main.url}`} className="text-sky-300">zurück</Link>
|
|
</div>
|
|
|
|
} |