mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-14 07:45:39 +01:00
working frontend
This commit is contained in:
19
frontend/src/components/centered/centered.tsx
Normal file
19
frontend/src/components/centered/centered.tsx
Normal file
@@ -0,0 +1,19 @@
|
||||
import './centered.css';
|
||||
|
||||
function Centered(
|
||||
props: React.DetailedHTMLProps<
|
||||
React.HTMLAttributes<HTMLDivElement>,
|
||||
HTMLDivElement
|
||||
> & { screen?: boolean },
|
||||
) {
|
||||
let clss = 'centered';
|
||||
if (props.screen) {
|
||||
clss += ' centered-screen';
|
||||
} else {
|
||||
clss += ' centered-normal';
|
||||
}
|
||||
|
||||
return <div className={clss} {...props} />;
|
||||
}
|
||||
|
||||
export default Centered;
|
||||
Reference in New Issue
Block a user