diff --git a/src/app/notification/page.tsx b/src/app/notification/page.tsx index 200cfe78..385f828b 100644 --- a/src/app/notification/page.tsx +++ b/src/app/notification/page.tsx @@ -1,6 +1,6 @@ 'use client'; -import { NotificationCard } from '@/components/pages/notification'; +import { NotificationCard, NotificationHeader } from '@/components/pages/notification'; import { useGetNotificationsInfinite } from '@/hooks/use-notification/use-notification-get-list'; export default function NotificationPage() { @@ -10,6 +10,7 @@ export default function NotificationPage() { return (
+

v

모두 읽음 처리

diff --git a/src/components/pages/notification/index.ts b/src/components/pages/notification/index.ts index de7f2df6..88e4d1b5 100644 --- a/src/components/pages/notification/index.ts +++ b/src/components/pages/notification/index.ts @@ -1 +1,2 @@ export { NotificationCard } from './notification-card'; +export { NotificationHeader } from './notification-header'; diff --git a/src/components/pages/notification/notification-header/index.tsx b/src/components/pages/notification/notification-header/index.tsx new file mode 100644 index 00000000..33e2ae4a --- /dev/null +++ b/src/components/pages/notification/notification-header/index.tsx @@ -0,0 +1,25 @@ +'use client'; +import { useRouter } from 'next/navigation'; + +import { Icon } from '@/components/icon'; + +export const NotificationHeader = () => { + const router = useRouter(); + + const handleHistoryBackClick = () => { + router.back(); + }; + + return ( + + ); +};