가맹점 정보, 일부 상수 및 공용 변경

This commit is contained in:
focp212@naver.com
2025-09-18 14:52:27 +09:00
parent 2910b20974
commit 9ba7bdd3e4
50 changed files with 623 additions and 748 deletions

View File

@@ -0,0 +1,26 @@
import { useEffect, useState } from 'react';
import { IMAGE_ROOT } from '@/shared/constants/common';
import {
AltMsgKeys,
SectionArrowProps
} from '../model/types';
export const SectionTitleArrow = ({ isOpen }: SectionArrowProps) => {
const [altMsg, setAltMsg] = useState<AltMsgKeys>(AltMsgKeys.Fold);
const [className, setClassName] = useState<string>('ic20 rot-180');
useEffect(() => {
setAltMsg((isOpen)? AltMsgKeys.Fold: AltMsgKeys.UnFold);
setClassName(`ic20 ${(isOpen)? 'rot-180': ''}`);
}, [isOpen]);
return (
<>
<img
className={ className }
src={ IMAGE_ROOT + '/select_arrow.svg' }
alt={ altMsg }
/>
</>
);
};