import React from "react";
import cn from "classnames";
import Image from "next/image";
import { TurboUser } from "./users";
const DEFAULT_SIZE = {
width: 100,
height: 75,
};
export function Logo({
user,
theme,
isLink,
}: {
user: TurboUser;
theme: "dark" | "light";
isLink: boolean;
}) {
const styles = {
...DEFAULT_SIZE,
...user.style,
};
let numericWidth: number;
let numericHeight: number;
if (typeof styles.width === "number") {
numericWidth = styles.width;
}
if (typeof styles.height === "number") {
numericHeight = styles.height;
}
const logo = (
);
if (isLink) {
return (
{logo}
);
}
return logo;
}