Files
nice-app-web/src/entities/additional-service/ui/intro-list-item.tsx
focp212@naver.com 05238b04c1 첫 커밋
2025-09-05 15:36:48 +09:00

35 lines
732 B
TypeScript

import { IntroListItemProps } from '../model/types';
import { useNavigate } from '@/shared/lib/hooks/use-navigate';
export const IntroListItem = ({
className,
serviceName,
serviceDesc,
icon,
path
}: IntroListItemProps) => {
const { navigate } = useNavigate();
const onClickToNavigate = () => {
if(!!path){
navigate(path);
}
};
return (
<>
<div
className={ className }
onClick={ () => onClickToNavigate() }
>
<div>
<div className="service-name">{ serviceName }</div>
<p className="service-desc">{ serviceDesc }</p>
</div>
<img
src={ icon }
alt={ serviceName }
/>
</div>
</>
)
};