+
diff --git a/src/app/meeting/_features/BackButton.tsx b/src/app/meeting/_features/BackButton.tsx
deleted file mode 100644
index 07b73dea..00000000
--- a/src/app/meeting/_features/BackButton.tsx
+++ /dev/null
@@ -1,18 +0,0 @@
-'use client';
-
-import { ArrowLeft } from 'lucide-react';
-import { useRouter } from 'next/navigation';
-
-const BackButton = () => {
- const router = useRouter();
-
- return (
-
- );
-};
-export default BackButton;
diff --git a/src/app/meeting/_features/CardRightSection.tsx b/src/app/meeting/_features/CardRightSection.tsx
index 1a947283..4a06b03e 100644
--- a/src/app/meeting/_features/CardRightSection.tsx
+++ b/src/app/meeting/_features/CardRightSection.tsx
@@ -32,6 +32,7 @@ const CardRightSection = ({ meeting }: { meeting: MeetingDetail }) => {
};
const status = meeting.isMeetingManager ? 'LEADER' : meeting.memberStatus;
+ const isRejected = status === 'REJECTED' || status === 'EXPEL';
return (
@@ -49,6 +50,11 @@ const CardRightSection = ({ meeting }: { meeting: MeetingDetail }) => {
+ ) : isRejected ? (
+ // 거절되거나 추방된 경우
+
) : ['false', 'new user'].includes(status) ? (
meeting.maxMember === meeting.memberCount ? (
// 인원이 다 찬 경우
diff --git a/src/app/meeting/_features/TopSection.tsx b/src/app/meeting/_features/TopSection.tsx
new file mode 100644
index 00000000..f8739bb5
--- /dev/null
+++ b/src/app/meeting/_features/TopSection.tsx
@@ -0,0 +1,41 @@
+'use client';
+
+import { useDetailQueries } from '@/hooks/queries/useMeetingQueries';
+import { ArrowLeft, Edit } from 'lucide-react';
+import Link from 'next/link';
+import { useRouter } from 'next/navigation';
+
+const TopSection = ({ meetingId }: { meetingId: number }) => {
+ const router = useRouter();
+
+ const { data: meeting, isLoading, error } = useDetailQueries(meetingId);
+ const status = meeting?.isMeetingManager ? 'LEADER' : meeting?.memberStatus;
+
+ if (isLoading || error) {
+ return null;
+ }
+
+ return (
+
+
+
+ {status === 'LEADER' && (
+
+
+
+ )}
+
+ );
+};
+
+export default TopSection;