import { createSignal, For, Match, Show, Switch } from 'solid-js'; import { SyncedLine } from './SyncedLine'; import { t } from '@/i18n'; import { getSongInfo } from '@/providers/song-info-front'; import { LineLyrics } from '../../types'; import { differentDuration, hadSecondAttempt, isFetching, isInstrumental, makeLyricsRequest, } from '../lyrics/fetch'; export const [debugInfo, setDebugInfo] = createSignal(); export const [lineLyrics, setLineLyrics] = createSignal([]); export const [currentTime, setCurrentTime] = createSignal(-1); export const LyricsContainer = () => { const [error, setError] = createSignal(''); const onRefetch = async () => { if (isFetching()) return; setError(''); const info = getSongInfo(); await makeLyricsRequest(info).catch((err) => { setError(`${err}`); }); }; return (
} > {(item) => }
); };