import { createContext } from 'react';

export type MarkdownLinkClickHandler = (href: string) => void;

export type MarkdownLinkContextValue = {
  onMarkdownLinkClick?: MarkdownLinkClickHandler;
};

export const MarkdownLinkContext = createContext<MarkdownLinkContextValue | null>(null);
