diff --git a/dev/test-studio/plugins/router-debug/RouterDebug.tsx b/dev/test-studio/plugins/router-debug/RouterDebug.tsx new file mode 100644 index 000000000000..5569c536b91e --- /dev/null +++ b/dev/test-studio/plugins/router-debug/RouterDebug.tsx @@ -0,0 +1,90 @@ +import React from 'react' +import {Button, Card, Code, Flex, Stack, Text} from '@sanity/ui' +import {IntentLink, RouteScope, StateLink, useRouter, useStateLink} from 'sanity/router' + +export function RouterDebug() { + const {navigate} = useRouter() + + const link = useStateLink({ + state: { + section: 'abc', + _searchParams: [['viewParam', 'from link']], + }, + }) + + return ( + + + + Tool home + + Go to section "abc", with search params + + + + Resolve intent + +