@brizy/ui
Version:
React elements in Brizy style
7 lines (6 loc) • 394 B
JavaScript
import React, { useCallback } from "react";
import { BRZ_PREFIX } from "../constants";
export const ProLabel = ({ children, onClick }) => {
const _onClick = useCallback(() => onClick && onClick(), [onClick]);
return (React.createElement("div", { className: `${BRZ_PREFIX}-pro-label`, style: Object.assign({}, (onClick ? { cursor: "pointer" } : {})), onClick: _onClick }, children));
};