@sanity/default-layout
Version:
The default layout components for Sanity
27 lines • 819 B
TypeScript
/// <reference types="react" />
export interface Router {
state: {
space?: string;
tool: string;
};
navigate: (nextState: Record<string, unknown>, options?: {
replace: boolean;
}) => void;
}
export interface Tool {
canHandleIntent?: (intent: Record<string, any>, params: Record<string, any>, state: Record<string, any>) => void;
component?: React.ComponentType<{
tool: string;
}>;
icon?: React.ComponentType;
getIntentState?: (intent: Record<string, any>, params: Record<string, any>, state: Record<string, any>, payload: Record<string, any>) => void;
name: string;
title: string;
router?: Record<string, any>;
}
export interface User {
email: string;
name?: string;
profileImage?: string;
}
//# sourceMappingURL=types.d.ts.map