import { createSlice , PayloadAction } from "@reduxjs/toolkit" ; import { SeatsState } from "../../types/api" ; export const initialState = { seats : [ ] , } ; const defaultRoomSlice = createSlice ( { name : "defaultRoom" , initialState , reducers : { updateState : ( state , action ) => action . payload , } , } ) ; export default defaultRoomSlice ;