Extract a shared Logo component for the header and footer

The header inlined its own logo/wordmark fallback markup. Pull it into
components/logo.tsx so the footer can show the same mark, and drop the
now-unneeded 'use client' from the root layout.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VUttSNLkLPvvR6Xf75QA1K
This commit is contained in:
Rami Bitar
2026-08-04 14:58:20 -04:00
co-authored by Claude Opus 5
parent b139b30273
commit ebdb0bee2f
4 changed files with 61 additions and 15 deletions
+10
View File
@@ -4,6 +4,7 @@ import {
RiTiktokLine,
RiFacebookFill,
} from '@remixicon/react';
import Logo from '@/components/logo';
export interface FooterLink {
label: string;
@@ -12,6 +13,7 @@ export interface FooterLink {
interface FooterProps {
storeName?: string;
logoUrl?: string;
copyright?: string;
links?: FooterLink[];
instagramUrl?: string;
@@ -21,6 +23,7 @@ interface FooterProps {
const Footer: React.FC<FooterProps> = ({
storeName = 'Shop',
logoUrl,
copyright,
links = [
{ label: 'Terms of Service', url: '/policies/terms-of-service' },
@@ -46,6 +49,13 @@ const Footer: React.FC<FooterProps> = ({
assistant launcher. Links and socials sit on separate rows so the
icons aren't crammed onto the end of the link list. */}
<div className="flex flex-col items-center gap-y-5 sm:items-start">
<Logo
src={logoUrl}
storeName={storeName}
imageClassName="h-5"
textClassName="text-base"
/>
<nav className="flex flex-wrap items-center justify-center gap-x-5 gap-y-2 sm:justify-start">
{links.map((link) => (
<a