- Product aanmaken/bewerken/archiveren/herstellen (ST-101, ST-103) - SplitPane component met versleepbare splitter en localStorage (ST-104) - PanelNavBar herbruikbaar paneelheader component (ST-105) - PbiList met prioriteitsgroepen, inline aanmaken, filter en verwijderen (ST-106-ST-110) - StoryPanel placeholder rechter paneel met selectie via Zustand (ST-109) - App iconen geinstalleerd: favicon, apple-icon, PWA manifest (192/512px) - AppIcon SVG component in navigatiebar - Root layout metadata bijgewerkt naar Nederlands Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
734 B
TypeScript
18 lines
734 B
TypeScript
import { cookies } from 'next/headers'
|
|
import { getIronSession } from 'iron-session'
|
|
import { redirect } from 'next/navigation'
|
|
import { SessionData, sessionOptions } from '@/lib/session'
|
|
import { ProductForm } from '@/components/products/product-form'
|
|
import { createProductAction } from '@/actions/products'
|
|
|
|
export default async function NewProductPage() {
|
|
const session = await getIronSession<SessionData>(await cookies(), sessionOptions)
|
|
if (session.isDemo) redirect('/dashboard')
|
|
|
|
return (
|
|
<div className="p-6 max-w-2xl mx-auto w-full">
|
|
<h1 className="text-xl font-medium text-foreground mb-6">Nieuw product</h1>
|
|
<ProductForm action={createProductAction} submitLabel="Product aanmaken" />
|
|
</div>
|
|
)
|
|
}
|