TTime/frontend/src/Components/Footer.tsx

22 lines
629 B
TypeScript
Raw Normal View History

2024-03-20 13:54:59 +01:00
//info: Footer component to display the footer of a page where the buttons are placed
2024-03-07 11:48:34 +01:00
import React from "react";
2024-03-20 13:54:59 +01:00
/**
* Footer component.
*
* @param {Object} props - The component props.
* @param {React.ReactNode} props.children - The children elements to render inside the footer (buttons).
* @returns {JSX.Element} The rendered footer component.
*/
2024-03-07 11:48:34 +01:00
function Footer({ children }: { children: React.ReactNode }): JSX.Element {
return (
<footer className="bg-white">
2024-03-07 11:48:34 +01:00
<div className="flex justify-end items-center h-16 space-x-6 pr-6">
{children}
</div>
</footer>
);
}
2024-03-07 11:48:34 +01:00
export default Footer;