14 lines
340 B
TypeScript
14 lines
340 B
TypeScript
import { useContactApi } from './useContactApi'
|
|
|
|
export function useContact() {
|
|
const { sendContactMessage: sendContactMessageApi } = useContactApi()
|
|
|
|
async function sendContactMessage(subject: string, message: string): Promise<void> {
|
|
return sendContactMessageApi({ subject, message })
|
|
}
|
|
|
|
return {
|
|
sendContactMessage
|
|
}
|
|
}
|