daily-toolset
Version:
A lightweight, versatile collection of TypeScript utility functions for everyday development needs. Simplify and streamline your Node.js, React, and Next.js projects with a powerful suite of well-organized helpers for strings, arrays, dates, objects, and
10 lines (9 loc) • 376 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.InputError = InputError;
const jsx_runtime_1 = require("react/jsx-runtime");
function InputError({ message }) {
if (!message)
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
return (0, jsx_runtime_1.jsx)("span", { className: "input-error", children: message });
}