Remove primary host plumbing
This commit is contained in:
@@ -3,7 +3,6 @@ import { StyleSheet, useUnistyles } from "react-native-unistyles";
|
||||
import { MicOff, Square } from "lucide-react-native";
|
||||
import { VolumeMeter } from "./volume-meter";
|
||||
import { useRealtime } from "@/contexts/realtime-context";
|
||||
import { useSession } from "@/contexts/session-context";
|
||||
import { FOOTER_HEIGHT } from "@/contexts/footer-controls-context";
|
||||
|
||||
const CONTROL_BUTTON_SIZE = 48;
|
||||
@@ -11,7 +10,6 @@ const VERTICAL_PADDING = (FOOTER_HEIGHT - CONTROL_BUTTON_SIZE) / 2;
|
||||
|
||||
export function RealtimeControls() {
|
||||
const { theme } = useUnistyles();
|
||||
const { audioPlayer } = useSession();
|
||||
const {
|
||||
volume,
|
||||
isMuted,
|
||||
@@ -23,7 +21,6 @@ export function RealtimeControls() {
|
||||
} = useRealtime();
|
||||
|
||||
function handleStop() {
|
||||
audioPlayer.stop();
|
||||
stopRealtime();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user