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-07 10:05:45 +01:00
|
|
|
|
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 {
|
2024-03-07 10:05:45 +01:00
|
|
|
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">
|
2024-03-07 10:05:45 +01:00
|
|
|
{children}
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2024-03-07 11:48:34 +01:00
|
|
|
export default Footer;
|