vorteil/direktiv

View on GitHub
ui/src/components/Logo/index.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import LogoDesignComponent from "~/design/Logo";
import { useTheme } from "~/util/store/theme";

const Logo = ({
  className,
  iconOnly,
}: {
  className?: string;
  iconOnly?: boolean;
}): JSX.Element => {
  const theme = useTheme();
  const logoTheme = theme === "dark" ? "dark" : "light";

  return (
    <LogoDesignComponent
      className={className}
      theme={logoTheme}
      iconOnly={iconOnly}
    />
  );
};

export default Logo;