Added page interface

This commit is contained in:
Erica Birdsong 2024-03-26 13:25:20 -04:00
parent 4790d4adf5
commit b5494a53d6
2 changed files with 22 additions and 0 deletions

View File

View File

@ -0,0 +1,22 @@
interface PageLayoutProps{
icon: React.ReactElement;
title: string;
table: React.ReactElement
}
export const PageLayout: React.FC<PageLayoutProps> = ({ icon, title, table }) => {
return(
<div flex-column>
<div flex-row>
<span className="h-5 text-gray-500 w-5">
{icon}
</span>
<span className="flex-grow font-medium text-xs text-gray-500">
{title}
</span>
</div>
<span> {table} </span>
</div>
);
};