import { Comment } from "timi-web"; /** * emits */ export interface Emits { (event: "submit"): Promise; } export const useHandler = (emit: Emits) => { const onSubmit = async (comment: Comment) => await emit("submit"); return { onSubmit, }; };