mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-02-23 08:04:52 +01:00
19 lines
552 B
TypeScript
19 lines
552 B
TypeScript
import { createFileRoute } from '@tanstack/react-router';
|
|
import type { SettingsTab } from '../../../components/Settings/Settings';
|
|
import Settings from '../../../components/Settings/Settings';
|
|
|
|
interface SettingsSearchSchema {
|
|
tab?: SettingsTab;
|
|
}
|
|
|
|
export const Route = createFileRoute('/workspaces/$workspaceId/settings')({
|
|
component: RouteComponent,
|
|
validateSearch: (search: Record<string, unknown>): SettingsSearchSchema => ({
|
|
tab: (search.tab ?? 'general') as SettingsTab,
|
|
}),
|
|
});
|
|
|
|
function RouteComponent() {
|
|
return <Settings />;
|
|
}
|