+ {category.description} +
+ )} +| {__("Name")} | +{__("Duration")} | +{__("Description")} | ++ |
|---|---|---|---|
| + + setCookieForm({ ...cookieForm, name: e.target.value })} + placeholder={__("Cookie name")} + /> + | ++ + setCookieForm({ + ...cookieForm, + duration: e.target.value, + })} + placeholder={__("e.g. 1 year")} + /> + | ++ + setCookieForm({ + ...cookieForm, + description: e.target.value, + })} + placeholder={__("Description")} + /> + | +
+
+
+
+
+ |
+
+ {cookie.name}
+ |
+ + {cookie.duration} + | ++ {cookie.description} + | +
+
+
+
+
+ |
+
| + + setCookieForm({ ...cookieForm, name: e.target.value })} + placeholder={__("Cookie name")} + /> + | ++ + setCookieForm({ ...cookieForm, duration: e.target.value })} + placeholder={__("e.g. 1 year")} + /> + | ++ + setCookieForm({ + ...cookieForm, + description: e.target.value, + })} + placeholder={__("Description")} + /> + | +
+
+
+
+
+ |
+
- {`
+
+ {`
@@ -80,56 +49,65 @@ export default function CookieBannerSnippetPage() {
type="text/plain"
data-cookie-consent="analytics"
data-src="https://analytics.example.com/tracker.js"
->`}
+>`}
+
- {``}
+`}
+
- {`
+>`}
+
- {`
+ {`
`}
+/>`}
+
- {`
+ {``}
+/>`}
+