/* * Copyright (c) 2026 by Christian Kellner. * Licensed under Apache-2.0 with Commons Clause and Attribution/Naming Clause */ import { UserGuide } from '@douyinfe/semi-ui-19'; import { useScreenWidth } from '../../hooks/screenWidth'; import heart from '../../assets/heart.png'; import newsConfig from '../../assets/news/news.json'; import { useActions, useSelector } from '../../services/state/store'; import './NewsModal.less'; const newsImages = import.meta.glob('../../assets/news/*', { eager: true, query: '?url', import: 'default' }); const NewsModal = () => { const screenWidth = useScreenWidth(); const newsHash = useSelector((state) => state.userSettings.settings.news_hash); const userSettingsLoaded = useSelector((state) => state.userSettings.loaded); const pois = useSelector((state) => state.tracking.pois); const actions = useActions(); if (newsConfig == null || newsConfig.length === 0 || screenWidth <= 768) { return null; } const steps = newsConfig.content.map((item) => ({ title: (