Skip to content

Commit 9c5f14f

Browse files
authored
Merge pull request #94
[#79] feat(artists-list) : μž„μ‹œ μ—λŸ¬νŽ˜μ΄μ§€ 생성 (λ‚˜μ€‘μ— μ‚­μ œν•  νŽ˜μ΄μ§€)
2 parents 027f8a8 + 00a1333 commit 9c5f14f

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// TODO: λ‚˜μ€‘μ— 이 νŽ˜μ΄μ§€λŠ” μ‚­μ œν•˜κΈ°
2+
3+
"use client";
4+
5+
import { useEffect } from "react";
6+
7+
export default function Error({ error, reset }: { error: Error; reset: () => void }) {
8+
useEffect(() => {
9+
console.error(error);
10+
}, [error]);
11+
12+
return (
13+
<div className="flex min-h-[60vh] flex-col items-center justify-center gap-4">
14+
<h2 className="text-xl font-semibold">λ¬Έμ œκ°€ λ°œμƒν–ˆμŠ΅λ‹ˆλ‹€</h2>
15+
<p className="text-text-sub">μ•„ν‹°μŠ€νŠΈ λͺ©λ‘μ„ λΆˆλŸ¬μ˜€λŠ” 쀑 였λ₯˜κ°€ λ°œμƒν–ˆμ–΄μš”.</p>
16+
<button className="bg-point-main rounded px-4 py-2 text-white" onClick={() => reset()}>
17+
λ‹€μ‹œ μ‹œλ„
18+
</button>
19+
</div>
20+
);
21+
}

0 commit comments

Comments
Β (0)