27 lines
939 B
TypeScript
27 lines
939 B
TypeScript
import { manufacturerFindAll } from "../../../../actions/manufacturer.actions";
|
|
import { categoryFindAll } from "../../../../actions/category.actions";
|
|
import { ArticleMainForm } from "../../../../components/article/articleMain.form";
|
|
import { articleCreate, articleFindAll } from "../../../../actions/article.actions";
|
|
import Link from "next/link";
|
|
import { sites } from "../../../../../../apps/frontend/_config/sites";
|
|
//import { sites } from "@/";
|
|
|
|
|
|
interface Props {
|
|
|
|
}
|
|
|
|
export default async function ArticlePage({ }: Props) {
|
|
|
|
const cats = await categoryFindAll();
|
|
const manufacturer = await manufacturerFindAll();
|
|
const artikel = await articleFindAll();
|
|
|
|
if(!manufacturer) return <div>Keine Hersteller gefunden</div>
|
|
|
|
return <>
|
|
<ArticleMainForm categories={cats} manufacturer={manufacturer}></ArticleMainForm>
|
|
<Link href={`${sites.article.url}`} className="text-sky-300">zurück</Link>
|
|
|
|
</>
|
|
} |