arbitrage-engine/frontend/app/strategy-plaza/create/page.tsx

25 lines
709 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use client";
import { useAuth } from "@/lib/auth";
import { useRouter } from "next/navigation";
import StrategyForm, { DEFAULT_FORM } from "@/components/StrategyForm";
export default function CreateStrategyPage() {
useAuth();
const router = useRouter();
return (
<div className="p-4 max-w-2xl mx-auto">
<div className="mb-5">
<h1 className="text-lg font-bold text-slate-800"></h1>
<p className="text-slate-500 text-xs mt-0.5"></p>
</div>
<StrategyForm
mode="create"
initialData={DEFAULT_FORM}
onSuccess={(id) => router.push(`/strategy-plaza/${id}`)}
/>
</div>
);
}