Skip to content

Instantly share code, notes, and snippets.

@michael-mckenna
Created June 4, 2021 18:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michael-mckenna/e4795abe3289c4c372ac50fedd8d1ce3 to your computer and use it in GitHub Desktop.
Save michael-mckenna/e4795abe3289c4c372ac50fedd8d1ce3 to your computer and use it in GitHub Desktop.
const defaultChannels: Channel[] = [
{ name: "Rocket League", id: 1 },
{ name: "Aficionados", id: 2 },
{ name: "Work", id: 3 }
]
export interface ChannelsState {
channels: Channel[];
selectedChannelId: ChannelId | null;
}
export const initialChannelsState: ChannelsState = {
channels: defaultChannels,
selectedChannelId: 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment