import { h } from 'preact'; import withFormHandling from './FormHandling'; import '../styles/Form.css'; const BlogCommentsForm = ({ state, handleChange, handleSubmit }) => (
); const getBlogCommentsApiUrl = (props) => `${import.meta.env.PUBLIC_API_URL}/comments/${props.slug}`; export default withFormHandling(BlogCommentsForm, getBlogCommentsApiUrl, { author: '', comment: '', commentId: '' });