export const VIEW_MODE_KEY = 'Creevey_view_mode';
export const viewModes = ['side-by-side', 'swap', 'slide', 'blend'];
export const getViewMode = () => {
  const item = localStorage.getItem(VIEW_MODE_KEY);
  return item && viewModes.includes(item) ? item : 'side-by-side';
};