umami/components/pages/reports/ReportForm.js

29 lines
730 B
JavaScript
Raw Normal View History

2023-05-18 20:17:35 +02:00
import useMessages from 'hooks/useMessages';
import { Form, FormButtons, FormInput, FormRow, SubmitButton, TextField } from 'react-basics';
export function FunnelForm() {
2023-05-18 20:17:35 +02:00
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;