import React from "react";
import { createMessage, SNIPPET_TOOLTIP } from "@appsmith/constants/messages";
import { Button, Tooltip } from "design-system";
export enum ENTITY_TYPE {
ACTION = "ACTION",
WIDGET = "WIDGET",
APPSMITH = "APPSMITH",
JSACTION = "JSACTION",
}
type Props = {
className?: string;
entityId?: string;
entityType: ENTITY_TYPE;
// TODO: be more precise with the function type
onClick: any;
showIconOnly?: boolean;
};
export default function SearchSnippets(props: Props) {
const className = props.className || "";
const handleClick = props.onClick;
return props.showIconOnly ? (
) : (
);
}