import React from "react";
import { useTranslation } from "react-i18next";
import { Description } from "../Description";
import { PaginationButton } from "../PaginationButton";
import { Neighborhoods } from "../Neighborhoods";
import { useNeighborhoodMatch } from "~/sdks/NeighborhoodMatch/context";
import { TitleHeader } from "~/components/TitleHeader";
import { Attribution } from "~/components/Attribution";
export function Content() {
    const { t } = useTranslation(["neighborhoodMatch", "common"]);
    const { title, locale, isLoading, level, neighborhoodName, hideAttribution } = useNeighborhoodMatch();
    return (React.createElement(React.Fragment, null,
        React.createElement(TitleHeader, { title: typeof title === "string" || title === false
                ? title
                : t("title", {
                    context: level,
                }) }),
        React.createElement(Description, { neighborhoodName: neighborhoodName, isLoading: isLoading }),
        React.createElement(Neighborhoods, null),
        React.createElement(PaginationButton, null),
        React.createElement(Attribution, { sdkName: "neighborhood-match", locale: locale, isHidden: hideAttribution })));
}
//# sourceMappingURL=index.js.map