2022-12-27 13:52:50 -08:00
|
|
|
import type { AgGridReact as AgGridReactType } from '@ag-grid-community/react/lib/agGridReact';
|
|
|
|
|
import { useRef } from 'react';
|
|
|
|
|
import { VirtualGridContainer } from '/@/renderer/components';
|
2022-12-19 15:59:14 -08:00
|
|
|
import { AnimatedPage } from '/@/renderer/features/shared';
|
2022-12-27 13:52:50 -08:00
|
|
|
import { SongListContent } from '/@/renderer/features/songs/components/song-list-content';
|
2022-12-19 15:59:14 -08:00
|
|
|
import { SongListHeader } from '/@/renderer/features/songs/components/song-list-header';
|
|
|
|
|
|
|
|
|
|
const TrackListRoute = () => {
|
2022-12-27 13:52:50 -08:00
|
|
|
const tableRef = useRef<AgGridReactType | null>(null);
|
2022-12-19 15:59:14 -08:00
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<AnimatedPage>
|
|
|
|
|
<VirtualGridContainer>
|
2022-12-27 13:52:50 -08:00
|
|
|
<SongListHeader tableRef={tableRef} />
|
|
|
|
|
<SongListContent tableRef={tableRef} />
|
2022-12-19 15:59:14 -08:00
|
|
|
</VirtualGridContainer>
|
|
|
|
|
</AnimatedPage>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default TrackListRoute;
|