cal.pub0.org/components/CustomBranding.tsx

11 lines
267 B
TypeScript

import { useEffect } from "react";
const BrandColor = ({ val = "#292929" }: { val: string | undefined | null }) => {
useEffect(() => {
document.documentElement.style.setProperty("--brand-color", val);
}, [val]);
return null;
};
export default BrandColor;