27 lines
861 B
TypeScript
27 lines
861 B
TypeScript
import { manufacturerFindAll } from '../../../../actions/manufacturer.actions';
|
|
import { categoryFindAll } from '../../../../actions/category.actions';
|
|
import { articleGroupsFindAll } from '../../../../actions/article.actions';
|
|
import { ArticleMainForm } from '../../../../components/article/articleMain.form';
|
|
import Link from 'next/link';
|
|
import { sites } from '../../../../_config/sites';
|
|
|
|
export default async function ArticleNewPage() {
|
|
const [categories, manufacturer, groups] = await Promise.all([
|
|
categoryFindAll(),
|
|
manufacturerFindAll(),
|
|
articleGroupsFindAll(),
|
|
]);
|
|
return (
|
|
<>
|
|
<ArticleMainForm
|
|
categories={categories}
|
|
manufacturer={manufacturer}
|
|
groups={groups}
|
|
/>
|
|
<Link className="text-sky-700 p-6" href={sites.article.url}>
|
|
Zurück zu den Artikeln
|
|
</Link>
|
|
</>
|
|
);
|
|
}
|