/* eslint-disable */
      /* This is a auto generated file for building the project */ 


      import type { PageMeta } from "@webstudio-is/sdk";
      import type { System, ResourceRequest } from "@webstudio-is/sdk";
export const getResources = (_props: { system: System }) => {
  let ghostUrl = "https://blog.jamericanbar.com"
  const system = _props.system
  let ghostContentApiKey = "c9014d5d9ceabb1dd08f0ec0a3"
  const ghostPost_1: ResourceRequest = {
    name: "ghostPost",
    url: `${ghostUrl}/ghost/api/content/posts/slug/${system?.params?.slug}?key=${ghostContentApiKey}&include=authors,tags&filter=visibility:public`,
    searchParams: [
    ],
    method: "get",
    headers: [
      { name: "Accept-Version", value: "v5.0" },
    ],
  }
  const _data = new Map<string, ResourceRequest>([
    ["ghostPost_1", ghostPost_1],
  ])
  const _action = new Map<string, ResourceRequest>([
  ])
  return { data: _data, action: _action }
}


      export const getPageMeta = ({
  system,
  resources,
}: {
  system: System;
  resources: Record<string, any>;
}): PageMeta => {
  let ghostPost = resources.ghostPost_1
  return {
    title: ghostPost?.data?.posts?.[0]?.["meta_title"] || ghostPost?.data?.posts?.[0]?.title,
    description: ghostPost?.data?.posts?.[0]?.["meta_description"] || ghostPost?.data?.posts?.[0]?.["custom_excerpt"] || ghostPost?.data?.posts?.[0]?.excerpt,
    excludePageFromSearch: true,
    language: "",
    socialImageAssetName: undefined,
    socialImageUrl: ghostPost?.data?.posts?.[0]?.["og_image"] || ghostPost?.data?.posts?.[0]?.["feature_image"] || "",
    status: ghostPost?.data?.posts?.[0]?.id ? 200 : 404,
    redirect: "",
    custom: [
      {
        property: "twitter:card",
        content: ghostPost?.data?.posts?.[0]?.["twitter_image"] || "",
      },
    ],
  };
};


      type Params = Record<string, string | undefined>;
export const getRemixParams = ({ ...params }: Params): Params => {
  return params
}


      export const contactEmail = "jabaflorida@gmail.com";
    