import PropTypes from "prop-types"; import { Stack, Typography, Grid, Button } from "@mui/material"; import { useTheme } from "@emotion/react"; import Discord from "../../assets/icons/discord-icon.svg?react"; import Slack from "../../assets/icons/slack-icon.svg?react"; import Zapier from "../../assets/icons/zapier-icon.svg?react"; import "./index.css"; /** * Integrations component * @param {Object} props - Props for the IntegrationsComponent. * @param {string} props.icon - The icon for the integration image. * @param {string} props.header - The header for the integration. * @param {string} props.info - Information about the integration. * @param {Function} props.onClick - The onClick handler for the integration button. * @returns {JSX.Element} The JSX representation of the IntegrationsComponent. */ const IntegrationsComponent = ({ icon, header, info, onClick }) => { const theme = useTheme(); return ( {icon} {header} {info} ); }; // PropTypes for IntegrationsComponent IntegrationsComponent.propTypes = { icon: PropTypes.object.isRequired, header: PropTypes.string.isRequired, info: PropTypes.string.isRequired, onClick: PropTypes.func.isRequired, }; /** * Integrations Page Component * @returns {JSX.Element} The JSX representation of the Integrations page. */ const Integrations = () => { const theme = useTheme(); const integrations = [ { icon: ( ), header: "Slack", info: "Connect with Slack and see incidents in a channel", onClick: () => {}, }, { icon: ( ), header: "Discord", info: "Connect with Discord and view incidents directly in a channel", onClick: () => {}, }, { icon: ( ), header: "Zapier", info: "Send all incidents to Zapier, and then see them everywhere", onClick: () => {}, }, // Add more integrations as needed ]; return ( Integrations Connect BlueWave Uptime to your favorite service. {integrations.map((integration, index) => ( ))} ); }; export default Integrations;