+
+
+
+ {
+ setSortType(0);
+ setPostId(0);
+ searchParams.set('open-sort', 'recent');
+ setSearchParams(searchParams);
+ setIsModalOpen(false);
+ setScrollLock(false);
+ }}
+ >
+ {sortType === 0 ? (
+ <>
+ 최근순
+
+ >
+ ) : (
+ 최근순
+ )}
+
+ {
+ setSortType(1);
+ setPostId(0);
+ searchParams.set('open-sort', 'likes');
+ setSearchParams(searchParams);
+ setIsModalOpen(false);
+ setScrollLock(false);
+ }}
+ >
+ {sortType === 1 ? (
+ <>
+ 공감 많은 순
+
+ >
+ ) : (
+ 공감 많은 순
+ )}
+
+ {
+ setSortType(2);
+ setPostId(0);
+ searchParams.set('open-sort', 'comments');
+ setSearchParams(searchParams);
+ setIsModalOpen(false);
+ setScrollLock(false);
+ }}
+ >
+ {sortType === 2 ? (
+ <>
+ 댓글 많은 순
+
+ >
+ ) : (
+ 댓글 많은 순
+ )}
+
+
+ );
+};
+const slideIn = keyframes`
+ from{
+ transform : translateY(100%);
+ }
+ to{
+ transform : translateY(0%);
+ }
+`;
+const slideOut = keyframes`
+ from{
+ transform : translateY(0%);
+ }
+ to{
+ transform : translateY(100%);
+ }
+`;
+const Wrapper = styled.div<{ visible: boolean }>`
+ @media (max-width: 767px) {
+ width: 100vw;
+ }
+ @media (min-width: 768px) {
+ width: 37.5rem;
+ }
+ position: fixed;
+ height: 22.7rem;
+ background-color: ${Grey6};
+ bottom: 0;
+ border-radius: 2rem 2rem 0 0;
+ box-shadow: 0px -4px 10px rgba(0, 0, 0, 0.1);
+ z-index: 2002;
+ animation: ${({ visible }) => (visible ? slideIn : slideOut)} 0.3s ease-in-out;
+
+ .bar-wrapper {
+ height: 4.5rem;
+ display: flex;
+ justify-content: center;
+ }
+ .row {
+ display: flex;
+ padding: 1rem 2rem 0 2rem;
+ height: 4.4rem;
+ justify-content: space-between;
+ cursor: pointer;
+ }
+`;
+const Bar = styled.div`
+ margin-top: 1.2rem;
+ width: 3.1rem;
+ height: 0.3rem;
+ background-color: ${Grey4};
+`;
diff --git a/src/components/Buyer/Common/SortModal.tsx b/src/components/Buyer/Common/SortModal.tsx
index 4837cc22..b53d5f06 100644
--- a/src/components/Buyer/Common/SortModal.tsx
+++ b/src/components/Buyer/Common/SortModal.tsx
@@ -1,5 +1,6 @@
import { ReactComponent as CheckIcon } from 'assets/icons/icon-modal-check.svg';
import { SetStateAction } from 'react';
+import { SetURLSearchParams } from 'react-router-dom';
import { useRecoilState, useSetRecoilState } from 'recoil';
import styled, { keyframes } from 'styled-components';
import { Green, Grey1, Grey4, Grey6 } from 'styles/color';
@@ -9,12 +10,16 @@ interface SortModalProps {
sortType: number;
setSortType: React.Dispatch