close 버튼 공통화

This commit is contained in:
focp212@naver.com
2025-11-03 13:36:22 +09:00
parent b543719295
commit 6ff2209508
24 changed files with 145 additions and 208 deletions

View File

@@ -0,0 +1,26 @@
import { IMAGE_ROOT } from "@/shared/constants/common";
import { useTranslation } from "react-i18next";
export interface FullMenuCloseProps {
addClass?: string;
onClickToCallback: () => void;
};
export const FullMenuClose = ({
addClass = 'full-menu-close',
onClickToCallback
}: FullMenuCloseProps) => {
const { t } = useTranslation();
return (
<>
<button className={ addClass }>
<img
src={ IMAGE_ROOT + '/ico_close.svg' }
alt={ t('filter.close') }
onClick={ onClickToCallback }
/>
</button>
</>
);
};