Improve dashboard sidebar layout
This commit is contained in:
@@ -1,21 +1,7 @@
|
||||
"use client";
|
||||
|
||||
import { BusinessBrandImage } from "~/components/branding/business-brand-image";
|
||||
import { Logo } from "~/components/branding/logo";
|
||||
import { hasBusinessBrandAsset } from "~/lib/business-branding";
|
||||
import { api } from "~/trpc/react";
|
||||
|
||||
export function DashboardBrand({ compact = false }: { compact?: boolean }) {
|
||||
const { data: business } = api.businesses.getDefault.useQuery();
|
||||
if (business && hasBusinessBrandAsset(business)) {
|
||||
return (
|
||||
<BusinessBrandImage
|
||||
business={business}
|
||||
kind={compact ? "icon" : "wordmark"}
|
||||
decorative
|
||||
className={compact ? "h-8 w-8" : "h-8 w-36"}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return <Logo size={compact ? "icon" : "sm"} />;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user