import { RootState } from '../../../../../../../redux/store';

export const selectCart = (state: RootState) => state.cartItem;

export const selectCartItemById = (id: string) => (state: RootState) =>
  state.cartItem.items.find((obj) => obj.id === id);
