32 lines
852 B
TypeScript
32 lines
852 B
TypeScript
import Link from 'next/link';
|
|
import { sites } from '../../../../_config/sites';
|
|
import { articleFindAll } from '../../../../actions/article.actions';
|
|
import { locationTree } from '../../../../actions/location.actions';
|
|
import {
|
|
stockContentFindAll,
|
|
stockFindAll,
|
|
} from '../../../../actions/stock.actions';
|
|
import { StockForm } from '../../../../components/stock/stock.form';
|
|
|
|
export default async function StockMovementPage() {
|
|
const [article, orte, stocks, contents] = await Promise.all([
|
|
articleFindAll(),
|
|
locationTree(),
|
|
stockFindAll(),
|
|
stockContentFindAll(),
|
|
]);
|
|
return (
|
|
<main>
|
|
<StockForm
|
|
article={article}
|
|
orte={orte}
|
|
stocks={stocks}
|
|
contents={contents}
|
|
/>
|
|
<Link className="text-sky-700 p-6" href={sites.main.url}>
|
|
Zurück
|
|
</Link>
|
|
</main>
|
|
);
|
|
}
|