22 lines
427 B
TypeScript
22 lines
427 B
TypeScript
import React from "react";
|
|
|
|
interface BackgroundProps {
|
|
children: React.ReactNode;
|
|
className?: string;
|
|
}
|
|
const Background: React.FC<BackgroundProps> = ({ children, className }) => {
|
|
return (
|
|
<div
|
|
className={
|
|
"bg-background-light dark:bg-background-dark transition-all" +
|
|
" " +
|
|
className
|
|
}
|
|
>
|
|
{children}
|
|
</div>
|
|
);
|
|
};
|
|
|
|
export default Background;
|