feat: globally set robot state

This commit is contained in:
Rohit
2025-01-30 23:26:26 +05:30
parent a28c59b82e
commit 61ae28ef4d

View File

@@ -54,9 +54,8 @@ interface RobotSettingsProps {
export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => { export const RobotSettingsModal = ({ isOpen, handleStart, handleClose, initialSettings }: RobotSettingsProps) => {
const { t } = useTranslation(); const { t } = useTranslation();
const [robot, setRobot] = useState<RobotSettings | null>(null);
const [userEmail, setUserEmail] = useState<string | null>(null); const [userEmail, setUserEmail] = useState<string | null>(null);
const { recordingId, notify } = useGlobalInfoStore(); const { recordingId, notify, robot, setRobot } = useGlobalInfoStore();
useEffect(() => { useEffect(() => {
if (isOpen) { if (isOpen) {