@shopify/cli-kit
Version:
A set of utilities, interfaces, and models that are common across all the platform features
13 lines (12 loc) • 337 B
TypeScript
import React from 'react';
export interface Link {
label: string | undefined;
url: string;
}
export interface ContextValue {
links: React.RefObject<{
[key: string]: Link;
}>;
addLink: (label: string | undefined, url: string) => string;
}
export declare const LinksContext: React.Context<ContextValue | null>;