import { useMemo } from 'react'; import styled from 'styled-components'; import { LyricLine } from '/@/renderer/features/lyrics/lyric-line'; interface UnsynchronizedLyricsProps { lyrics: string; source: string | null; } const UnsynchronizedLyricsContainer = styled.div` padding: 5rem 0; `; export const UnsynchronizedLyrics = ({ lyrics, source }: UnsynchronizedLyricsProps) => { const lines = useMemo(() => { return lyrics.split('\n'); }, [lyrics]); return ( {source && ( )} {lines.map((text, idx) => ( ))} ); };