diff --git a/src/components/Book.js b/src/components/Book.js index e00a038..bfe3017 100644 --- a/src/components/Book.js +++ b/src/components/Book.js @@ -1,18 +1,10 @@ import React from 'react' -import { getBook } from '../lib/gutenberg' import styles from './Book.css' -import { useStore } from '../store' -export const Book = ({ author, language, title, id }) => { - const [_, { setText, setLang }] = useStore() - - const handleClick = async () => { - setText(await getBook(id)) - setLang(language[0]) - } +export const Book = ({ author, language, title }) => { return ( -