import { FC } from "react"; import { observer } from "mobx-react"; import { TIssue } from "@plane/types"; import { Input } from "@plane/ui"; type TInboxIssueTitle = { data: Partial; handleData: (issueKey: keyof Partial, issueValue: Partial[keyof Partial]) => void; isTitleLengthMoreThan255Character?: boolean; }; export const InboxIssueTitle: FC = observer((props) => { const { data, handleData, isTitleLengthMoreThan255Character } = props; return (
handleData("name", e.target.value)} placeholder="Title" className="w-full resize-none text-xl" required /> {isTitleLengthMoreThan255Character && ( Title should be less than 255 characters )}
); });