Add app sidebar
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
interface TopBarProps {
|
||||
title: string;
|
||||
button?: React.ReactNode;
|
||||
}
|
||||
|
||||
const TopBar = ({ title, button }: TopBarProps) => {
|
||||
return (
|
||||
<div className="flex items-center justify-between my-4">
|
||||
<h1 className="text-2xl font-semibold">{title}</h1>
|
||||
{button}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
export default TopBar;
|
||||
Reference in New Issue
Block a user