import { createSelector } from "reselect";

const selectMedia = (state) => state.media;

// Return a shallow copy to avoid identity selector warning and allow memoization to detect actual changes.
export const selectAllMedia = createSelector([selectMedia], (media) => ({ ...media }));
