denwa-react-shared
Version:
34 lines (33 loc) • 941 B
TypeScript
export declare const HOTKEYS: {
'mod+b': string;
'mod+i': string;
'mod+u': string;
'mod+`': string;
};
export declare const LIST_TYPES: string[];
export declare const TEXT_ALIGN_TYPES: string[];
export declare const allowedUrls: string[];
export declare const textButtons: {
id: string;
format: string;
text: string;
}[];
interface UseIconButtonsParams {
boldText: string;
italicText: string;
underlineText: string;
numberedListText: string;
bulletedListText: string;
leftText: string;
centerText: string;
rightText: string;
justifyText: string;
}
export declare const useIconButtons: ({ boldText, italicText, underlineText, numberedListText, bulletedListText, leftText, centerText, rightText, justifyText, }: UseIconButtonsParams) => {
id: string;
title: string;
format: string;
icon: import("react/jsx-runtime").JSX.Element;
type: string;
}[];
export {};