-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emotion 관련 컴포넌트에서 해당 인터페이스를 import하여 사용하게 구현
- Loading branch information
Showing
6 changed files
with
28 additions
and
25 deletions.
There are no files selected for viewing
File renamed without changes
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
export type EmotionType = '감동' | '기쁨' | '고민' | '슬픔' | '분노'; | ||
export type EmotionState = 'Default' | 'Unclicked' | 'Clicked'; | ||
|
||
export interface EmotionIconCardProps { | ||
iconType: EmotionType; // 아이콘 종류 | ||
state: EmotionState; // 상태 | ||
size: 'sm' | 'md' | 'lg'; // 크기 | ||
onClick?: () => void; // 클릭 이벤트 핸들러 | ||
} | ||
|
||
export interface InteractiveEmotionIconCardProps extends Omit<EmotionIconCardProps, 'state'> { | ||
state: EmotionState; | ||
onClick: () => void; | ||
} |