import clsx from 'clsx'; import { ComponentPropsWithoutRef } from 'react'; import styles from './lyric-line.module.css'; import { Box } from '/@/shared/components/box/box'; import { Stack } from '/@/shared/components/stack/stack'; interface LyricLineProps extends ComponentPropsWithoutRef<'div'> { alignment: 'center' | 'left' | 'right'; fontSize: number; text: string; } export const LyricLine = ({ alignment, className, fontSize, text, ...props }: LyricLineProps) => { const lines = text.split('_BREAK_'); return ( {lines.map((line, index) => ( {line} ))} ); };