From 43cdb7607d9423109758334155acfe844eab6ea5 Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Mon, 20 Dec 2021 19:06:49 +0100
Subject: chore: define search form visibility

---
 src/components/Form/Form.tsx | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

(limited to 'src/components/Form/Form.tsx')

diff --git a/src/components/Form/Form.tsx b/src/components/Form/Form.tsx
index 5e26e81..dd1bc63 100644
--- a/src/components/Form/Form.tsx
+++ b/src/components/Form/Form.tsx
@@ -4,12 +4,19 @@ import styles from './Form.module.scss';
 const Form = ({
   children,
   submitHandler,
+  modifier = '',
 }: {
   children: ReactNode;
   submitHandler: any;
+  modifier?: string;
 }) => {
+  const classes =
+    modifier !== ''
+      ? `${styles.wrapper} ${styles[`wrapper--${modifier}`]}`
+      : styles.wrapper;
+
   return (
-    <form onSubmit={submitHandler} className={styles.wrapper}>
+    <form onSubmit={submitHandler} className={classes}>
       {children}
     </form>
   );
-- 
cgit v1.2.3

