import { createAppSlice } from '../../app/createAppSlice';
import booksData from './booksData';

export const booksSlice = createAppSlice({
  name: 'books',
  initialState: booksData,
  reducers: {},
  selectors: {
    selectAllBooks: (state) => state,
  },
});

export const { selectAllBooks } = booksSlice.selectors;
