-
+
{isUploading ? (
@@ -76,7 +64,7 @@ export function PDFUploader({ className = '' }: PDFUploaderProps) {
{isDragActive ? 'Drop your PDF here' : 'Drop your PDF here, or click to select'}
- Only PDF files are accepted
+ Only PDF files are currently accepted
{error &&
{error}
}
>
diff --git a/src/components/icons/Icons.tsx b/src/components/icons/Icons.tsx
index f7ae714..2e12e13 100644
--- a/src/components/icons/Icons.tsx
+++ b/src/components/icons/Icons.tsx
@@ -140,16 +140,7 @@ export function SettingsIcon(props: React.SVGProps
) {
className={props.className || "w-6 h-6"}
{...props}
>
-
-
+
);
}
@@ -173,3 +164,21 @@ export function CheckIcon(props: React.SVGProps) {
);
}
+
+export function UploadIcon(props: React.SVGProps) {
+ return (
+
+ );
+}
diff --git a/src/components/player/SpeedControl.tsx b/src/components/player/SpeedControl.tsx
index a76de72..fd85f28 100644
--- a/src/components/player/SpeedControl.tsx
+++ b/src/components/player/SpeedControl.tsx
@@ -19,8 +19,7 @@ const speedOptions = [
{ value: 3, label: '3x' },
];
-export const SpeedControl = ({ speed, setSpeedAndRestart }: {
- speed: number;
+export const SpeedControl = ({ setSpeedAndRestart }: {
setSpeedAndRestart: (speed: number) => void;
}) => {
const { voiceSpeed } = useConfig();
diff --git a/src/components/player/TTSPlayer.tsx b/src/components/player/TTSPlayer.tsx
index 64c7844..334d420 100644
--- a/src/components/player/TTSPlayer.tsx
+++ b/src/components/player/TTSPlayer.tsx
@@ -23,9 +23,7 @@ export default function TTSPlayer({ currentPage, numPages }: {
skipForward,
skipBackward,
isProcessing,
- speed,
setSpeedAndRestart,
- voice,
setVoiceAndRestart,
availableVoices,
skipToPage,
@@ -35,7 +33,7 @@ export default function TTSPlayer({ currentPage, numPages }: {
{/* Speed control */}
-
+
{/* Page Navigation */}
@@ -68,7 +66,7 @@ export default function TTSPlayer({ currentPage, numPages }: {
{/* Voice control */}
-
+
);
diff --git a/src/components/player/VoicesControl.tsx b/src/components/player/VoicesControl.tsx
index 39bb7fa..71817cc 100644
--- a/src/components/player/VoicesControl.tsx
+++ b/src/components/player/VoicesControl.tsx
@@ -7,8 +7,7 @@ import {
import { ChevronUpDownIcon } from '@/components/icons/Icons';
import { useConfig } from '@/contexts/ConfigContext';
-export const VoicesControl = ({ voice, availableVoices, setVoiceAndRestart }: {
- voice: string;
+export const VoicesControl = ({ availableVoices, setVoiceAndRestart }: {
availableVoices: string[];
setVoiceAndRestart: (voice: string) => void;
}) => {