'use server';

import View from './view';
import { forbidden } from 'next/navigation';
import { isAuthenticated } from '@/lib/api/auth';

export default async function PostWrite()
{
	// 로그인 필요
	if (!await isAuthenticated()) {
		return forbidden();
	}

    return (
		<View />
	);
}