mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
29 lines
609 B
TypeScript
29 lines
609 B
TypeScript
"use client";
|
|
|
|
import { Input } from "@plane/ui";
|
|
|
|
type Props = {
|
|
value: string;
|
|
onChange: (value: string) => void;
|
|
hasError: boolean;
|
|
};
|
|
export const WebhookInput: React.FC<Props> = (props) => {
|
|
const { value, onChange, hasError } = props;
|
|
|
|
return (
|
|
<>
|
|
<h6 className="text-sm font-medium">Payload URL</h6>
|
|
<Input
|
|
type="url"
|
|
className="h-11 w-full"
|
|
onChange={(e) => onChange(e.target.value)}
|
|
value={value}
|
|
autoComplete="off"
|
|
hasError={hasError}
|
|
placeholder="https://example.com/post"
|
|
autoFocus
|
|
/>
|
|
</>
|
|
);
|
|
};
|