import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
import { NativeScriptCommonModule } from '@nativescript/angular';
import { NgxsModule } from '@ngxs/store';
import { NativeScriptUIListViewModule } from 'nativescript-ui-listview/angular';
import { MessageDetailComponent } from '~/pages/message/containers/message-detail/message-detail.component';
import { MessageComponent } from '~/pages/message/containers/message/message.component';
import { MessageRoutingModule } from '~/pages/message/message-routing.module';
import { MessageDetailState } from '~/pages/message/state-mgmt/message-detail.state';
import { MessageState } from '~/pages/message/state-mgmt/message.state';
import { SharedModule } from '~/shared/shared.module';

@NgModule({
    imports: [
        NativeScriptCommonModule,
        MessageRoutingModule,
        NativeScriptUIListViewModule,
        SharedModule,
        NgxsModule.forFeature([
            MessageState,
            MessageDetailState
        ])
    ],
    declarations: [
        MessageComponent,
        MessageDetailComponent
    ],
    entryComponents: [],
    providers: [],
    schemas: [
        NO_ERRORS_SCHEMA
    ]
})
export class MessageModule {
}
