use styled components and improve error handling

This commit is contained in:
tristan 2023-12-31 04:27:09 +00:00
parent 9d0d54c2e4
commit 29f79c67d8
10 changed files with 117 additions and 86 deletions

View file

@ -9,8 +9,10 @@ rec {
writeAttrs = attrs:
toString (builtins.attrValues (
builtins.mapAttrs (key: value:
if (builtins.substring 0 2 key) == "__" then ""
else ''${key}="${toString value}"'') attrs
if (builtins.substring 0 2 key) == "__"
then ""
else ''${key}="${toString value}"'')
attrs
));
tag = tag: attrs: child: {