definitionActions

tcmts.share.definitionActions · #6ycyhj4c · term · runs anywhere

What a definition's page offers for editing it, if an app showing the forge's pages does more than say the command (the studio: an Edit button, writing it into a scratch file): set once, as that app's pages start. Nothing from it (or none set, as the forge sets none) leaves the button copying tcm edit <name>.

import type { ReactNode } from "react";

export const definitionActions: {
  current?: (p: { name: string; hash: string; kind: string }) => ReactNode;
} = {}

used by