import { API_URL } from '../../config' import { PoetryResponse, Poetry } from './types' const initialPoetry: Poetry = { title: '', text: '', author: '', } const composePoetryURL = () => ( API_URL + '/poetry?' ) const processPoetry = (data: PoetryResponse): Poetry => { return data } export { initialPoetry, composePoetryURL, processPoetry }