import { useTranslation } from "react-i18next" import { useMixerState } from "../../hooks/use-mixer-state" import { Fader } from "./fader" export function MasterSection() { const { t } = useTranslation() const { master, updateMaster } = useMixerState() return (

{t("timeline.audioMixer.master")}

{/* Bus section (placeholder for now) */}
{t("fairlightAudio.mixer.masterSection.bus1")}
{t("fairlightAudio.mixer.masterSection.bus2")}
{/* Master controls */}
{/* Limiter */}
{master.limiterEnabled && (
{t("fairlightAudio.mixer.masterSection.threshold")} {master.limiterThreshold} dB
updateMaster({ limiterThreshold: Number(e.target.value) })} className="w-full h-1" />
)}
{/* Master fader */}
updateMaster({ volume: value })} muted={master.muted} onMute={() => updateMaster({ muted: !master.muted })} label={t("fairlightAudio.mixer.masterSection.master")} className="scale-110" />
) }