diff --git a/src/components/settings/MicrophoneSelector.tsx b/src/components/settings/MicrophoneSelector.tsx
index a958719..dc9bccf 100644
--- a/src/components/settings/MicrophoneSelector.tsx
+++ b/src/components/settings/MicrophoneSelector.tsx
@@ -1,33 +1,15 @@
import React from "react";
import { Dropdown } from "../ui/Dropdown";
import { SettingContainer } from "../ui/SettingContainer";
-import ResetIcon from "../icons/ResetIcon";
+import { ResetButton } from "../ui/ResetButton";
import { useSettings } from "../../hooks/useSettings";
-// Simple refresh icon component
-const RefreshIcon: React.FC<{ className?: string }> = ({ className = "" }) => (
-
-);
-
interface MicrophoneSelectorProps {
descriptionMode?: "inline" | "tooltip";
grouped?: boolean;
}
-export const MicrophoneSelector: React.FC
= ({
+export const MicrophoneSelector: React.FC = React.memo(({
descriptionMode = "tooltip",
grouped = false,
}) => {
@@ -45,14 +27,10 @@ export const MicrophoneSelector: React.FC = ({
const handleMicrophoneSelect = async (deviceName: string) => {
await updateSetting("selected_microphone", deviceName);
- console.log(
- `Microphone changed to: ${audioDevices.find((d) => d.name === deviceName)?.name}`,
- );
};
const handleReset = async () => {
await resetSetting("selected_microphone");
- console.log("Microphone reset to default");
};
const microphoneOptions = audioDevices.map(device => ({
@@ -76,19 +54,11 @@ export const MicrophoneSelector: React.FC = ({
disabled={isUpdating("selected_microphone") || isLoading}
onRefresh={refreshAudioDevices}
/>
-
+ />
- {isUpdating("selected_microphone") && (
-