From d1f4d40144059af2c07804650597847ce8c48027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20FAMIBELLE-PRONZOLA?= Date: Sun, 23 Jun 2024 06:51:29 +0400 Subject: [PATCH] Remove HandleComments component --- .../konstitisyon/comments/handle-comments.js | 59 ------------------- 1 file changed, 59 deletions(-) delete mode 100644 components/konstitisyon/comments/handle-comments.js diff --git a/components/konstitisyon/comments/handle-comments.js b/components/konstitisyon/comments/handle-comments.js deleted file mode 100644 index 7b471e2..0000000 --- a/components/konstitisyon/comments/handle-comments.js +++ /dev/null @@ -1,59 +0,0 @@ -'use client' - -import PropTypes from 'prop-types' -import CreateComment from './create-comment.js' -import ReadComments from './read-comments.js' - -export default function HandleComments({ - session, - selectedTitre, - isOpen, - setIsOpen, - setError, - setSuccess, - setIsErrorAlertOpen, - setIsSuccessAlertOpen, - operation -}) { - if (operation === 'create') { - return ( - - ) - } - - if (operation === 'read') { - return ( - - ) - } -} - -HandleComments.propTypes = { - session: PropTypes.object, - selectedTitre: PropTypes.object.isRequired, - isOpen: PropTypes.bool.isRequired, - setIsOpen: PropTypes.func.isRequired, - setError: PropTypes.func.isRequired, - setSuccess: PropTypes.func.isRequired, - setIsErrorAlertOpen: PropTypes.func.isRequired, - setIsSuccessAlertOpen: PropTypes.func.isRequired, - operation: PropTypes.oneOf(['create', 'read']).isRequired -}