import React from "react";
import { useTranslation } from "react-i18next";
import * as styles from "./styles";
import { useTracking } from "~/tracking";
import { Attribution } from "~/components/Attribution";
import { TrackingPipelineEvents } from "~/sdks/NeighborhoodSchools/types";
import { useNeighborhoodSchools } from "~/sdks/NeighborhoodSchools/context";
export const Footer = ({ hideAttribution }) => {
    const { t } = useTranslation("neighborhoodSchools");
    const tracking = useTracking();
    const { locale } = useNeighborhoodSchools();
    const handleAttributionClicked = () => {
        tracking.postEvent({
            eventType: TrackingPipelineEvents.ATTRIBUTION_CLICKED,
        });
    };
    return (React.createElement("div", { className: styles.container },
        React.createElement("p", { className: styles.dataDisclaimer }, t("dataDisclaimer")),
        React.createElement(Attribution, { onClick: handleAttributionClicked, sdkName: "neighborhood-schools", locale: locale, isHidden: hideAttribution })));
};
//# sourceMappingURL=index.js.map