import React from 'react'; import { Query, Mutation } from 'react-apollo'; import gql from 'graphql-tag'; import CartStyles from './styles/CartStyles'; import Supreme from './styles/Supreme'; import CloseButton from './styles/CloseButton'; import SickButton from './styles/SickButton'; const LOCAL_STATE_QUERY = gql` query { cartOpen @client } `; const TOGGLE_CART_MUTATION = gql` mutation { toggleCart @client } `; const Cart = () => ( {toggleCart => ( {({ data }) => (
× Your Cart

You Have __ Items in your cart.

)}
)}
); export default Cart; export { LOCAL_STATE_QUERY, TOGGLE_CART_MUTATION };