This repository was archived by the owner on Feb 13, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,19 @@ import * as React from 'react'
33import { Copyright } from '@/components/copyright'
44import { ThemeToggle } from '@/components/theme-toggle'
55import { LanguageCombobox } from '@/components/language-combobox'
6+ import { cn } from '@/lib/utils'
67
7- const Footer = ( ) => {
8+ interface FooterProps extends React . HTMLAttributes < HTMLElement > { }
9+
10+ const Footer = ( { className, ...props } : FooterProps ) => {
811 return (
9- < footer className = "flex border-0 border-t border-solid border-input bg-inherit" >
12+ < footer
13+ className = { cn (
14+ 'flex border-0 border-t border-solid border-input bg-inherit' ,
15+ className
16+ ) }
17+ { ...props }
18+ >
1019 < div className = "container flex items-center justify-between gap-2 bg-inherit py-4" >
1120 < Copyright className = "text-sm" />
1221 < div className = "flex gap-2" >
@@ -18,4 +27,4 @@ const Footer = () => {
1827 )
1928}
2029
21- export { Footer }
30+ export { Footer , type FooterProps }
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ import { SearchFormDialog } from '@/components/search-form-dialog'
2525import { cn } from '@/lib/utils'
2626import { useAuth } from '@/hooks/use-auth'
2727
28- const Header = ( ) => {
28+ interface HeaderProps extends React . HTMLAttributes < HTMLElement > { }
29+
30+ const Header = ( { className, ...props } : HeaderProps ) => {
2931 const searchParams = useSearchParams ( )
3032 const pathname = usePathname ( )
3133 const { user } = useAuth ( )
@@ -42,10 +44,14 @@ const Header = () => {
4244 < MobileNavigation />
4345 </ SheetContent >
4446 < header
45- className = { cn (
46- 'flex w-full flex-col border-0 border-b border-solid border-input'
47- // 'sticky left-0 top-0 z-10'
48- ) }
47+ className = {
48+ ( cn (
49+ 'flex w-full flex-col border-0 border-b border-solid border-input'
50+ // 'sticky left-0 top-0 z-10'
51+ ) ,
52+ className )
53+ }
54+ { ...props }
4955 >
5056 < div className = "container flex h-[60px] items-center" >
5157 < SheetTrigger asChild >
@@ -115,4 +121,4 @@ const SignedOutNav = () => {
115121 )
116122}
117123
118- export { Header }
124+ export { Header , type HeaderProps }
You can’t perform that action at this time.
0 commit comments