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 { differentDuration, hadSecondAttempt, isFetching, isInstrumental, makeLyricsRequest, } from '../lyrics/fetch'; import type { LineLyrics } from '../../types'; 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(String(err)); }); }; return (
} > {(item) => }
); };