From a3a95c8f4d1e56ab96ac02c415ab93637a034e99 Mon Sep 17 00:00:00 2001 From: ZeroWave022 <36341766+ZeroWave022@users.noreply.github.com> Date: Sun, 25 Aug 2024 16:40:06 +0200 Subject: [PATCH] refactor: Move storage page header to own layout --- src/app/[locale]/(default)/storage/layout.tsx | 40 +++++++++++++++++++ src/app/[locale]/(default)/storage/page.tsx | 23 ----------- 2 files changed, 40 insertions(+), 23 deletions(-) create mode 100644 src/app/[locale]/(default)/storage/layout.tsx diff --git a/src/app/[locale]/(default)/storage/layout.tsx b/src/app/[locale]/(default)/storage/layout.tsx new file mode 100644 index 0000000..c941e8f --- /dev/null +++ b/src/app/[locale]/(default)/storage/layout.tsx @@ -0,0 +1,40 @@ +import { useTranslations } from 'next-intl'; + +import { Button } from '@/components/ui/Button'; + +import { + Tooltip, + TooltipContent, + TooltipProvider, + TooltipTrigger, +} from '@/components/ui/Tooltip'; +import { ShoppingCart } from 'lucide-react'; + +export default function StorageLayout({ + children, +}: { + children: React.ReactNode; +}) { + const t = useTranslations('storage'); + + return ( + <> +
{t('tooltips.viewShoppingCart')}
+{t('tooltips.viewShoppingCart')}
-