B2B-30: add button to create company from super admin page

This commit is contained in:
devmc-ee
2025-06-15 12:45:55 +03:00
parent 9d869becaa
commit 6e83d25a8c
8 changed files with 301 additions and 10 deletions

View File

@@ -4,29 +4,33 @@ import { MedReportLogo } from './med-report-title';
function LogoImage({
className,
compact = false,
}: {
className?: string;
width?: number;
compact?: boolean;
}) {
return <MedReportLogo className={className} />;
return <MedReportLogo compact={compact} className={className} />;
}
export function AppLogo({
href,
label,
className,
compact = false,
}: {
href?: string | null;
className?: string;
label?: string;
compact?: boolean;
}) {
if (href === null) {
return <LogoImage className={className} />;
return <LogoImage className={className} compact={compact} />;
}
return (
<Link aria-label={label ?? 'Home Page'} href={href ?? '/'} prefetch={true}>
<LogoImage className={className} />
<LogoImage className={className} compact={compact} />
</Link>
);
}