const UNAVAILABLE_MESSAGE = '// EMBER INDISPONIBLE — réessayer';
export class EmberStatusPresenter {
    present(event) {
        if (event.kind === 'answer') {
            return { avatarState: 'idle', liveRegionText: event.text, unavailableMessage: null };
        }
        if (event.kind === 'error' || event.status === 'error') {
            return {
                avatarState: 'error',
                liveRegionText: 'Ember est indisponible.',
                unavailableMessage: UNAVAILABLE_MESSAGE,
            };
        }
        if (event.status === 'working') {
            return {
                avatarState: 'working',
                liveRegionText: 'Ember prépare une réponse.',
                unavailableMessage: null,
            };
        }
        return {
            avatarState: 'idle',
            liveRegionText: 'Ember a terminé sa réponse.',
            unavailableMessage: null,
        };
    }
}
//# sourceMappingURL=emberStatus.presenter.js.map