vorteil/direktiv

View on GitHub
ui/src/components/LogoutButton/types.ts

Summary

Maintainability
A
0 mins
Test Coverage
import { ComponentType, PropsWithChildren, ReactNode } from "react";

type ButtonComponent = ComponentType<{
  onClick: () => void;
  children: ReactNode;
}>;

export type LogoutButtonProps = PropsWithChildren & {
  button: ButtonComponent;
};