const Posting = () => {
const [calendarOpen, setCalendarOpen] = useState(false);
const calendarClose = () => {
setCalendarOpen(!calendarOpen);
};
<div className="posting_calendar_wrap">
<div className="posting_calendar_icon">
<HiOutlineCalendar
style={{ marginRight: '14px' }}
color="#757575"
size="24px"
onClick={calendarClose}
/>
{calendarOpen && <Calendar calendarClose={calendarClose}></Calendar>}
<div className="posting_calendar">
<Calendar
style={{ marginRight: '14px' }}
color="#212121"
size="24px"
display="none"
/>
</div>
</div>
</div>;
};
export default Posting;