mirror of
https://github.com/kremalicious/umami.git
synced 2024-11-15 17:55:08 +01:00
29 lines
742 B
JavaScript
29 lines
742 B
JavaScript
import useMessages from 'hooks/useMessages';
|
|
import { Form, FormButtons, FormInput, FormRow, SubmitButton, TextField } from 'react-basics';
|
|
|
|
export function FunnelForm({ onSearch }) {
|
|
const { formatMessage, labels } = useMessages();
|
|
|
|
const handleSubmit = () => {};
|
|
|
|
return (
|
|
<>
|
|
<Form onSubmit={handleSubmit}>
|
|
<FormRow label={formatMessage(labels.website)}>
|
|
<FormInput name="name" rules={{ required: formatMessage(labels.required) }}>
|
|
<TextField />
|
|
</FormInput>
|
|
</FormRow>
|
|
|
|
<FormButtons>
|
|
<SubmitButton variant="primary" disabled={false}>
|
|
Save
|
|
</SubmitButton>
|
|
</FormButtons>
|
|
</Form>
|
|
</>
|
|
);
|
|
}
|
|
|
|
export default FunnelForm;
|