diff --git a/src/features/file-listing/FileRow.tsx b/src/features/file-listing/FileRow.tsx
index c280c8c..91d60d4 100644
--- a/src/features/file-listing/FileRow.tsx
+++ b/src/features/file-listing/FileRow.tsx
@@ -7,17 +7,17 @@ import {
Collapse,
GridItem,
Link,
- Text,
- useDisclosure,
VStack,
Wrap,
WrapItem,
+ useDisclosure,
} from '@chakra-ui/react';
import { FileRowResponsiveGrid } from './FileRowResponsiveGrid';
import { DecryptedAudioFile, deleteFile, ProcessState } from './fileListingSlice';
import { useAppDispatch } from '~/hooks';
import { AnimationDefinition } from 'framer-motion';
import { AlbumImage } from './AlbumImage';
+import { SongMetadata } from './SongMetadata';
interface FileRowProps {
id: string;
@@ -73,21 +73,7 @@ export function FileRow({ id, file }: FileRowProps) {
{metadata?.name ?? nameWithoutExt}
-
- {isDecrypted && metadata && (
-
-
- 专辑: {metadata.album}
-
-
- 艺术家: {metadata.artist}
-
-
- 专辑艺术家: {metadata.albumArtist}
-
-
- )}
-
+ {isDecrypted && metadata && }
{file.decrypted && }
diff --git a/src/features/file-listing/SongMetadata.tsx b/src/features/file-listing/SongMetadata.tsx
new file mode 100644
index 0000000..1756fa4
--- /dev/null
+++ b/src/features/file-listing/SongMetadata.tsx
@@ -0,0 +1,22 @@
+import { Box, Text } from '@chakra-ui/react';
+import type { AudioMetadata } from './fileListingSlice';
+
+export interface SongMetadataProps {
+ metadata: AudioMetadata;
+}
+
+export function SongMetadata({ metadata }: SongMetadataProps) {
+ return (
+
+
+ 专辑: {metadata.album}
+
+
+ 艺术家: {metadata.artist}
+
+
+ 专辑艺术家: {metadata.albumArtist}
+
+
+ );
+}