20 lines
488 B
TypeScript
20 lines
488 B
TypeScript
import React from 'react';
|
|
|
|
interface PortalBrandProps {
|
|
title: string;
|
|
subtitle: string;
|
|
admin?: boolean;
|
|
}
|
|
|
|
const PortalBrand: React.FC<PortalBrandProps> = ({ title, subtitle, admin = false }) => (
|
|
<div className="portal-brand">
|
|
<div className="portal-mark">S</div>
|
|
<div className={`portal-brand-text${admin ? ' admin-brand-text' : ''}`}>
|
|
<h1>{title}</h1>
|
|
<div className="portal-subtitle">{subtitle}</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
|
|
export default PortalBrand;
|