import React from "react"; import { wrapFieldsWithMeta } from "tinacms"; export const TextInputWithCount = (max: number, isTextArea = false) => wrapFieldsWithMeta(({ input }) => (
max ? "text-red-500" : "text-gray-500"} > {input.value.length}/{max}