11'use client' ;
22
33import Link from 'next/link' ;
4+ import Image from 'next/image' ;
45import { usePathname } from 'next/navigation' ;
56
67export function BottomNavBar ( ) {
78 const pathname = usePathname ( ) ;
89
910 const tabs = [
10- { name : 'microorganismTest' , path : '/microorganismTest' , label : '미생물 검사' , icon : '🔬 ' } ,
11- { name : 'record' , path : '/record' , label : '기록' , icon : '📝 ' } ,
12- { name : 'home' , path : '/' , label : '홈' , icon : '🏠 ' } ,
13- { name : 'shopping' , path : '/shopping' , label : '쇼핑' , icon : '🛒 ' } ,
14- { name : 'mypage' , path : '/myPage' , label : '마이' , icon : '👤 ' } ,
11+ { name : 'microorganismTest' , path : '/microorganismTest' , label : '미생물 검사' , icon : '/BottomNav/tab-microorganismTest.png ' } ,
12+ { name : 'record' , path : '/record' , label : '기록' , icon : '/BottomNav/tab-record.png ' } ,
13+ { name : 'home' , path : '/' , label : '홈' , icon : '/BottomNav/tab-home.png ' } ,
14+ { name : 'shopping' , path : '/shopping' , label : '쇼핑' , icon : '/BottomNav/tab-shopping.png ' } ,
15+ { name : 'mypage' , path : '/myPage' , label : '마이' , icon : '/BottomNav/tab-mypage.png ' } ,
1516 ] ;
1617
1718 return (
@@ -31,9 +32,14 @@ export function BottomNavBar() {
3132 href = { tab . path }
3233 className = "flex flex-col items-center justify-center flex-1 py-2 active:scale-95 transition-transform"
3334 >
34- < span className = { `text-2xl mb-1 transition-opacity ${ isActive ? 'opacity-100' : 'opacity-60' } ` } >
35- { tab . icon }
36- </ span >
35+ < div className = { `mb-1 transition-opacity ${ isActive ? 'opacity-100' : 'opacity-60' } ` } >
36+ < Image
37+ src = { tab . icon }
38+ alt = { tab . label }
39+ width = { 24 }
40+ height = { 24 }
41+ />
42+ </ div >
3743 < span
3844 className = { `text-xs transition-colors ${
3945 isActive ? 'text-[#FF6B6B] font-semibold' : 'text-gray-500'
0 commit comments