mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-02 10:53:33 +00:00
28 lines
758 B
TypeScript
28 lines
758 B
TypeScript
|
|
import { useRef } from 'react';
|
||
|
|
import type { AgGridReact as AgGridReactType } from '@ag-grid-community/react/lib/agGridReact';
|
||
|
|
import { Stack } from '@mantine/core';
|
||
|
|
import { PlayQueue } from '/@/renderer/features/now-playing/components/play-queue';
|
||
|
|
import { PlayQueueListControls } from './play-queue-list-controls';
|
||
|
|
import { Song } from '/@/renderer/api/types';
|
||
|
|
|
||
|
|
export const SidebarPlayQueue = () => {
|
||
|
|
const queueRef = useRef<{ grid: AgGridReactType<Song> } | null>(null);
|
||
|
|
|
||
|
|
return (
|
||
|
|
<Stack
|
||
|
|
pb="1rem"
|
||
|
|
pt="2.5rem"
|
||
|
|
sx={{ height: '100%' }}
|
||
|
|
>
|
||
|
|
<PlayQueue
|
||
|
|
ref={queueRef}
|
||
|
|
type="sideQueue"
|
||
|
|
/>
|
||
|
|
<PlayQueueListControls
|
||
|
|
tableRef={queueRef}
|
||
|
|
type="sideQueue"
|
||
|
|
/>
|
||
|
|
</Stack>
|
||
|
|
);
|
||
|
|
};
|