️ feat: create logo component

This commit is contained in:
Wahyu Kurniawan 2024-03-05 16:16:20 +07:00
parent 33fbdf60ae
commit aa4094669d
No known key found for this signature in database
GPG Key ID: 040A1549143A8E33

View File

@ -0,0 +1,22 @@
import React from 'react';
import { Link } from 'react-router-dom';
import { Heading } from './shared/Heading';
interface LogoProps {
orgSlug?: string;
}
export const Logo = ({ orgSlug }: LogoProps) => {
return (
<Link to={`/${orgSlug}`}>
<div className="flex items-center gap-3 px-0 lg:px-2">
<img
src="/logo.svg"
alt="Snowball Logo"
className="h-10 w-10 rounded-lg"
/>
<Heading className="text-[24px] font-semibold">Snowball</Heading>
</div>
</Link>
);
};