rum-goggles/frontend/src/screens/Dashboard.jsx

17 lines
384 B
React
Raw Normal View History

2023-12-13 21:07:40 +00:00
import { useState } from 'react';
import { useLocation } from 'react-router-dom';
import './Dashboard.css';
function Dashboard() {
const location = useLocation();
const [streamKey, setStreamKey] = useState(location.state.streamKey);
return (
<div id='Dashboard'>
<span>Dashboard: {streamKey}</span>
</div>
);
}
export default Dashboard;