@sanity/default-layout
Version:
The default layout components for Sanity
20 lines • 636 B
TypeScript
/**
* This component implements the part: `part:@sanity/default-layout/tool-switcher`
*/
import React from 'react';
import { Tool } from '../types';
interface VerticalToolSwitcherProps {
direction: 'vertical';
activeToolName: string;
isVisible: boolean;
onSwitchTool: () => void;
tools: Tool[];
}
interface HorizontalToolSwitcherProps {
direction: 'horizontal';
tools: Tool[];
}
declare type ToolSwitcherProps = VerticalToolSwitcherProps | HorizontalToolSwitcherProps;
export default function ToolSwitcher(props: ToolSwitcherProps): React.JSX.Element;
export {};
//# sourceMappingURL=tool-switcher.d.ts.map