서버 액션에서 폼 제출 시 아래 에러가 발생합니다.
```
Error: Functions cannot be passed directly to Client Components
unless you explicitly expose it by marking it with "use server".
```
코드:
```tsx
// app/contact/page.tsx
async function submitForm(formData: FormData) {
"use server";
const name = formData.get("name");
// DB 저장 로직
}
export default function ContactPage() {
return (
);
}
```
이 코드에서 뭐가 잘못된 건지 모르겠어요. 도움 부탁드립니다!