{"version":3,"file":"deleteListBook-CSgYkL04.js","sources":["../../../app/javascript/queries/listBooks/deleteListBook.ts"],"sourcesContent":["import { useApolloClient } from \"lib/apollo/client\";\nimport { gql } from \"graphql-tag\";\n\nexport const deleteListBook = gql`\n mutation DeleteListBook($id: Int!) {\n deleteResponse: delete_list_book(id: $id) {\n id\n list {\n ...ListFragment\n }\n }\n }\n`;\n\nexport const removeListBook = ({ id }) => {\n const client = useApolloClient();\n return client.mutate({\n mutation: deleteListBook,\n variables: {\n id,\n },\n });\n};\n"],"names":["deleteListBook","gql"],"mappings":"8GAGO,MAAMA,EAAiBC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}