mirror of
https://github.com/Since-3/Kumasy-Marketing.git
synced 2026-10-12 19:51:17 +00:00
15 lines
485 B
TypeScript
15 lines
485 B
TypeScript
/**
|
|
* Type and initial value for the waitlist form state.
|
|
*
|
|
* Separate from waitlist.ts on purpose: a "use server" module may only
|
|
* export async functions, so the constant cannot live next to the action
|
|
* it belongs to.
|
|
*/
|
|
export type WaitlistState = {
|
|
status: "idle" | "success" | "error";
|
|
message?: string;
|
|
/** Echoed back so a rejected submission does not clear the field. */
|
|
email?: string;
|
|
};
|
|
|
|
export const initialWaitlistState: WaitlistState = { status: "idle" };
|