Files
codey.lol/src/layouts/WhitelabelLayout.tsx

26 lines
735 B
TypeScript
Raw Normal View History

2025-12-19 13:45:30 -05:00
import React from 'react';
import type { ReactNode, CSSProperties } from 'react';
2025-12-19 11:59:00 -05:00
interface WhitelabelLayoutProps {
children: ReactNode;
header?: ReactNode;
footer?: ReactNode;
customStyles?: CSSProperties;
}
const WhitelabelLayout: React.FC<WhitelabelLayoutProps> = ({
children,
header = null,
footer = null,
customStyles = {}
}) => {
return (
<div style={customStyles} className="whitelabel-layout">
{header && <header className="whitelabel-header">{header}</header>}
<main className="whitelabel-main">{children}</main>
{footer && <footer className="whitelabel-footer">{footer}</footer>}
</div>
);
};
export default WhitelabelLayout;