-
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.
- Loading branch information
1 parent
98ac0b7
commit 7980d9a
Showing
39 changed files
with
603 additions
and
499 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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
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 |
---|---|---|
@@ -1,28 +1,30 @@ | ||
import Image from 'next/image'; | ||
import { CSSProperties, ReactNode } from 'react'; | ||
import { PropsWithChildren } from 'react'; | ||
import { MainBlueArrowIc } from '../../../public/assets/icons'; | ||
import Box, { BoxProps } from '../Common/Box'; | ||
|
||
interface DropDownBoxProps extends BoxProps { | ||
isOpen: boolean; | ||
handleToggle: () => void; | ||
} | ||
|
||
export default function DropDwonBox({ | ||
isOpen, | ||
handleToggle, | ||
styles, | ||
children, | ||
}: { | ||
isOpen: boolean; | ||
handleToggle: () => void; | ||
styles?: CSSProperties; | ||
children: ReactNode; | ||
}) { | ||
...rest | ||
}: PropsWithChildren<DropDownBoxProps>) { | ||
return ( | ||
<div className="flex items-center gap-8 w-full h-full text-[14px]" style={styles}> | ||
{children} | ||
<div onClick={handleToggle}> | ||
<Image | ||
src={MainBlueArrowIc} | ||
alt="화살표 아이콘" | ||
className={`origin-center ${isOpen ? 'rotate-90' : '-rotate-90'}`} | ||
/> | ||
<Box {...rest}> | ||
<div className="flex items-center gap-8 w-full h-full text-[14px]"> | ||
{rest.children} | ||
<div onClick={handleToggle}> | ||
<Image | ||
src={MainBlueArrowIc} | ||
alt="화살표 아이콘" | ||
className={`origin-center ${isOpen ? 'rotate-90' : '-rotate-90'}`} | ||
/> | ||
</div> | ||
</div> | ||
</div> | ||
</Box> | ||
); | ||
} |
Oops, something went wrong.