Skip to content

armgit / ODS

Public Imported from GitHub
0

ODS V3 Pre-Release: Public testing and refinement ahead of the official V3 launch. Turn your PC, Mac, or Linux box into a private AI server.

388 B
Raw Blame
import { Navigate, useSearchParams } from 'react-router-dom'

const sections = new Set(['connections', 'access', 'sharing', 'pixel-diagnostics'])

export default function PixelSettings() {
  const [params] = useSearchParams()
  const section = sections.has(params.get('section')) ? params.get('section') : 'connections'
  return <Navigate to={`/settings?section=${section}`} replace />
}