mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 17:09:37 +01:00
18 lines
484 B
TypeScript
18 lines
484 B
TypeScript
import { createFileRoute } from '@tanstack/react-router'
|
|
import Settings, { SettingsTab } from '../../components/Settings/Settings'
|
|
|
|
interface SettingsSearchSchema {
|
|
tab?: SettingsTab
|
|
}
|
|
|
|
export const Route = createFileRoute('/workspaces/settings')({
|
|
component: RouteComponent,
|
|
validateSearch: (search: Record<string, unknown>): SettingsSearchSchema => ({
|
|
tab: (search.tab ?? SettingsTab.General) as SettingsTab,
|
|
}),
|
|
})
|
|
|
|
function RouteComponent() {
|
|
return <Settings />
|
|
}
|