feat(art): switch submit button to ActionButton
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"use client";
|
||||
|
||||
import { createContext } from "react";
|
||||
|
||||
export type ActionSubmitContextData = {
|
||||
listenForComplete: (complete: () => void) => void;
|
||||
};
|
||||
|
||||
export const ActionSubmitContext = createContext<ActionSubmitContextData>({
|
||||
listenForComplete: (r) => {
|
||||
r();
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user