Files
xpack-mcp/frontend/src/shared/components/Footer.tsx
T

20 lines
659 B
TypeScript

'use client'
import React from "react";
import { usePlatformConfig } from "@/shared/contexts/PlatformConfigContext";
import { Link } from "@nextui-org/react";
interface FooterProps {
showPoweredBy?: boolean;
}
export function Footer({ showPoweredBy=true }: FooterProps) {
const { platformConfig } = usePlatformConfig();
return (
<footer className="py-4 px-4 sm:px-6 text-center sm:text-end max-w-7xl mx-auto text-xs">
<span className="mr-1">© 2025 {platformConfig?.name}. All rights reserved.</span>
{showPoweredBy && (
<Link className="text-xs" href="https://xpack.ai">Powered By XPack.AI</Link>
)}
</footer>
);
}