Moved useBook to useSend API

This commit is contained in:
2023-07-27 16:56:00 +03:00
parent 2a229c96ba
commit 3bb6809454
4 changed files with 57 additions and 61 deletions

View File

@ -0,0 +1,12 @@
import { API_URL } from '../../config'
import { Book, BookResponse } from './types'
const composeBookURL = () => (
API_URL + '/book?'
)
const processBook = (data: BookResponse): Book => {
return data.Success
}
export { composeBookURL, processBook }