-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEmailEditPage.tsx
More file actions
29 lines (28 loc) · 1.3 KB
/
EmailEditPage.tsx
File metadata and controls
29 lines (28 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import DashboardLayout from '../../../../shared/ui/backgrounds/DashboardLayout';
import EmailInput from '../../../../features/dashboard/ui/EmailInput';
import { participantsInfo } from '../../../../shared/types/participantInfoType';
import TimePicker from '../../../../features/event-manage/ui/TimePicker';
import Button from '../../../../../design-system/ui/Button';
import SelectTicketModal from '../../../../widgets/dashboard/ui/SelectTicketModal';
const EmailEditPage = () => {
const navigate = useNavigate();
const [ticketModalOpen, setTicketModalOpen] = useState(false);
return (
<DashboardLayout centerContent="WOOACON 2024">
<div className="flex flex-col gap-5 mt-8 px-7">
<EmailInput
type="이메일 내용 수정"
openSelectTicket={() => setTicketModalOpen(true)}
allParticipantEmails={participantsInfo.map(p => p.email)}
/>
{/*시간 선택 컴포넌트*/}
<TimePicker />
<Button label="보내기" onClick={() => navigate('/dashboard/mailBox')} className="w-full h-12 rounded-full" />
</div>
{ticketModalOpen && <SelectTicketModal onClose={() => setTicketModalOpen(false)} />}
</DashboardLayout>
);
};
export default EmailEditPage;