function ResponsiveAppBar()

in src/frontend/src/components/ResponsiveAppBar.tsx [37:105]


function ResponsiveAppBar({
  toolName = "",
  enableOneTap = true,
  clientId,
  onSignIn,
  onError,
}: {
  toolName?: string;
  enableOneTap?: boolean;
  clientId?: string;
  onSignIn?: any;
  onError?: any;
}): JSX.Element {
  const handleSignIn = (
    idToken: any,
    userInformation: any,
    accessToken: any,
  ) => {
    checkAndExecuteFn(onSignIn, idToken, userInformation, accessToken);
  };
  return (
    <AppBar
      position="static"
      style={{
        display: "flex",
        flexDirection: "row",
        justifyContent: "space-between",
      }}
    >
      <Typography
        variant="h5"
        noWrap
        component="a"
        href="/"
        sx={{
          mr: 2,
          ml: 2,
          display: { xs: "none", md: "flex" },
          fontFamily: "Roboto Condensed",
          fontStyle: "italic",
          fontWeight: 700,
          letterSpacing: "0.01rem",
          color: "inherit",
          textDecoration: "none",
          alignItems: "center",
        }}
      >
        {toolName}
      </Typography>
      <span
        style={{
          display: "flex",
          flexDirection: "row",
          padding: "0.5rem 2rem",
          alignItems: "center",
        }}
      >
        {clientId && (
          <GoogleSignInButton
            clientId={clientId}
            enableOneTap={enableOneTap}
            onSignIn={handleSignIn}
            onError={onError}
          />
        )}
      </span>
    </AppBar>
  );
}