feat(recipes): add CreateRecipeClient component for quick recipe import

refactor(recipes): integrate Navigation component into various recipe pages
This commit is contained in:
Nils-Johan Gynther
2026-04-17 20:37:48 +02:00
parent 28e938e66e
commit 68b29f6d8e
8 changed files with 241 additions and 230 deletions
+7 -1
View File
@@ -1,4 +1,5 @@
import { Metadata } from 'next';
import Navigation from '../Navigation';
import ImportTabsClient from './ImportTabsClient';
type Props = {
@@ -14,5 +15,10 @@ export async function generateMetadata({ searchParams }: Props): Promise<Metadat
export default async function ImportPage({ searchParams }: Props) {
const { tab } = await searchParams;
const activeTab = tab === 'recept' ? 'recept' : 'kvitto';
return <ImportTabsClient activeTab={activeTab} />;
return (
<>
<Navigation />
<ImportTabsClient activeTab={activeTab} />
</>
);
}