Function
QuerystringSkeleton
({
children,
className,
...props
}: React.ComponentProps<'pre'>)
Source from the content-addressed store, hash-verified
| 44 | } |
| 45 | |
| 46 | export function QuerystringSkeleton({ |
| 47 | children, |
| 48 | className, |
| 49 | ...props |
| 50 | }: React.ComponentProps<'pre'>) { |
| 51 | return ( |
| 52 | <pre |
| 53 | aria-label="Querystring spy" |
| 54 | aria-description="For browsers where the query is hard to see (eg: on mobile)" |
| 55 | className={cn( |
| 56 | 'bg-background block w-full overflow-x-auto rounded-lg border px-3 py-2 text-xs text-wrap sm:text-sm dark:bg-zinc-900/50 dark:shadow-inner', |
| 57 | className |
| 58 | )} |
| 59 | {...props} |
| 60 | > |
| 61 | {children} |
| 62 | </pre> |
| 63 | ) |
| 64 | } |
| 65 | |
| 66 | function filterQueryKeys(query: string | URLSearchParams, keys?: string[]) { |
| 67 | const source = new URLSearchParams(query) |
Callers
nothing calls this directly
Tested by
no test coverage detected