mirror of
https://github.com/khairul169/code-share.git
synced 2025-04-29 00:59:37 +07:00
28 lines
495 B
TypeScript
28 lines
495 B
TypeScript
import React from "react";
|
|
import { cn } from "~/lib/utils";
|
|
|
|
type Props = {
|
|
size?: "sm" | "md" | "lg";
|
|
};
|
|
|
|
const Logo = ({ size = "md" }: Props) => {
|
|
const sizes: Record<typeof size, string> = {
|
|
sm: "text-lg",
|
|
md: "text-xl",
|
|
lg: "text-2xl",
|
|
};
|
|
|
|
return (
|
|
<p
|
|
className={cn(
|
|
"text-xl font-bold text-transparent bg-gradient-to-b from-gray-200 to-gray-100 bg-clip-text",
|
|
sizes[size]
|
|
)}
|
|
>
|
|
CodeShare
|
|
</p>
|
|
);
|
|
};
|
|
|
|
export default Logo;
|