import type { ICellRendererParams } from '@ag-grid-community/core'; import { RiPlayFill } from 'react-icons/ri'; import { Text } from '/@/renderer/components/text'; import { CellContainer } from '/@/renderer/components/virtual-table/cells/generic-cell'; // const AnimatedSvg = () => { // return ( //
// // // // // // // // // // // // // // // // //
// ); // }; // const StaticSvg = () => { // return ( //
// // // // // // //
// ); // }; export const RowIndexCell = ({ eGridCell, value }: ICellRendererParams) => { const classList = eGridCell.classList; // const isFocused = classList.contains('focused'); const isPlaying = classList.contains('playing'); const isCurrentSong = classList.contains('current-song-cell') || classList.contains('current-playlist-song-cell'); return ( {isPlaying && (isCurrentSong ? ( ) : null)} {value} ); };