import React from 'react';
import './styles.css';
interface GridProps {
children: React.ReactNode;
}
export const Grid = ({ children }: GridProps) => {
return (
<div className="container">
{children}
</div>
);
};
export interface HeaderProps {
children: React.ReactNode;
}
export const Header = ({ children }: HeaderProps) => {
return (
<div className="header">
{children}
</div>
);
};
export interface SidebarProps {
children: React.ReactNode;
}
export const Sidebar = ({ children }: SidebarProps) => {
return (
<div className="sidebar">
{children}
</div>
);
};
export interface ContentProps {
children: React.ReactNode;
}
export const Content = ({ children }: ContentProps) => {
return (
<div className="content">
{children}
</div>
);
};
export default function App() {
return (
<>
{}
<Grid>
<Header>Header content goes here...Header content goes here...Header content goes here...Header content goes here...Header content goes here...Header content goes here...Header content goes here...</Header>
<Sidebar>Sidebar content goes here...Sidebar content goes here...Sidebar content goes here...Sidebar content goes here...Sidebar content goes here...Sidebar content goes here...</Sidebar>
<Content>Content goes here...Content goes here...Content goes here...Content goes here...Content goes here...Content goes here...Content goes here...Content goes here...</Content>
</Grid>
</>
)
}
export default App;