{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "page-states", "title": "Page States", "description": "Generic loading, error, and empty page states with safe error messages.", "registryDependencies": [ "askyourpolicy/ss-registry/stitch-base", "askyourpolicy/ss-registry/alert", "askyourpolicy/ss-registry/empty", "askyourpolicy/ss-registry/spinner" ], "files": [ { "path": "src/components/ui/page-states.tsx", "content": "import { WarningCircleIcon } from \"@phosphor-icons/react\";\nimport type { ComponentProps, ReactNode } from \"react\";\n\nimport { Alert, AlertAction, AlertDescription, AlertTitle } from \"@/components/ui/alert\";\nimport {\n Empty,\n EmptyContent,\n EmptyDescription,\n EmptyHeader,\n EmptyMedia,\n EmptyTitle,\n} from \"@/components/ui/empty\";\nimport { Spinner } from \"@/components/ui/spinner\";\nimport { cn } from \"@/lib/utils\";\n\ntype PageLoadingProps = ComponentProps<\"div\"> & {\n label?: string;\n};\n\nfunction PageLoading({ className, label = \"Loading page\", ...props }: PageLoadingProps) {\n return (\n