Currently the banner template and the cookie management logic are not completely independent.
This may cause conflicts in case a user needs to add a layer between the two (ex: #28 ).
specs
We should separate the cookie management logic and the banner template in two different components: CookieBanner (default) and Content.
The Content component would be exported as well and used as default by CookieBanner and it would accept any template related prop.
misc
After this separation the issue described in #28 could be solved by doing:
requirements
Currently the banner template and the cookie management logic are not completely independent. This may cause conflicts in case a user needs to add a layer between the two (ex: #28 ).
specs
We should separate the cookie management logic and the banner template in two different components:
CookieBanner
(default) andContent
.The
Content
component would be exported as well and used as default byCookieBanner
and it would accept any template related prop.misc
After this separation the issue described in #28 could be solved by doing: