mirror of
https://git.unlock-music.dev/um/um-react.git
synced 2024-11-24 04:52:16 +00:00
18 lines
411 B
TypeScript
18 lines
411 B
TypeScript
import { VStack } from '@chakra-ui/react';
|
|
|
|
import { selectFiles } from './fileListingSlice';
|
|
import { useAppSelector } from '../../hooks';
|
|
import { FileRow } from './FileRow';
|
|
|
|
export function FileListing() {
|
|
const files = useAppSelector(selectFiles);
|
|
|
|
return (
|
|
<VStack>
|
|
{Object.entries(files).map(([id, file]) => (
|
|
<FileRow key={id} id={id} file={file} />
|
|
))}
|
|
</VStack>
|
|
);
|
|
}
|