// import { fetchPositionCategories, fetchPositions } from "@/app/api/companys";
import React from "react";
import PositionSearch from "./PositionSearch";
import PositionSearchLoading from "./PositionSearchLoading";
import { fetchPositions } from "@/app/api/positions";

interface SubComponents {
  Loading: typeof PositionSearchLoading;
}

const PositionSearchWrapper: React.FC & SubComponents = async () => {
  const Positions = await fetchPositions();
  // const Positions:any[] = []

  return <PositionSearch positions={Positions} />;
};

PositionSearchWrapper.Loading = PositionSearchLoading;

export default PositionSearchWrapper;
