feat(fullstack): Add contact form
This commit is contained in:
13
legalconsenthub/app/composables/contact/useContact.ts
Normal file
13
legalconsenthub/app/composables/contact/useContact.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user