mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 11:36:17 +00:00
27 lines
732 B
TypeScript
27 lines
732 B
TypeScript
import { Card, CardHeader, CardTitle, CardContent } from "@/components/ui/card"
|
|
import { NetworkTrafficChart } from "@/components/charts/network-traffic-chart"
|
|
|
|
const Page = ({ params }) => {
|
|
const { id } = params
|
|
const timeframe = "1h" // Example value, you may need to adjust this based on your application logic
|
|
|
|
return (
|
|
<div>
|
|
{/* Other components or code here */}
|
|
|
|
<Card>
|
|
<CardHeader>
|
|
<CardTitle>Network Traffic</CardTitle>
|
|
</CardHeader>
|
|
<CardContent>
|
|
<NetworkTrafficChart timeframe={timeframe} interfaceName={id} refreshInterval={30000} />
|
|
</CardContent>
|
|
</Card>
|
|
|
|
{/* Other components or code here */}
|
|
</div>
|
|
)
|
|
}
|
|
|
|
export default Page
|