diff --git a/src/components/pagination/Arrow.tsx b/src/components/pagination/Arrow.tsx index 959ab0b..bb54315 100644 --- a/src/components/pagination/Arrow.tsx +++ b/src/components/pagination/Arrow.tsx @@ -8,16 +8,17 @@ import { cn } from '@/utils/helper'; interface ArrowProps { direction: 'left' | 'right'; disabled?: boolean; + className?: string; } -export default function Arrow({ direction, disabled = false }: ArrowProps) { +export default function Arrow({ direction, disabled = false, className }: ArrowProps) { const baseStyle = 'w-4 h-4 fill-current'; const colorStyle = disabled ? 'text-gray-30 cursor-default' : 'text-gray-50 hover:text-gray-60 cursor-pointer'; const dValue = direction === 'left' ? ARROW_PATH_LEFT : ARROW_PATH_RIGHT; return ( - + ); diff --git a/src/components/ui/Link/GoBackLink.tsx b/src/components/ui/Link/GoBackLink.tsx new file mode 100644 index 0000000..6f704b1 --- /dev/null +++ b/src/components/ui/Link/GoBackLink.tsx @@ -0,0 +1,23 @@ +import Link from 'next/link'; +import Arrow from '@/components/pagination/Arrow'; + +/* + * GoBackLink 컴포넌트 + * + * - 이동할 링크 주소를 href prop으로 전달하면 됩니다. + * 예시: + * + */ + +interface GoBackLinkProps { + href: string; +} + +export default function GoBackLink({ href }: GoBackLinkProps) { + return ( + + + 돌아가기 + + ); +}