import { Resource, ResourceContent, ResourceType } from "@/page/App/components/PublicTypes/resource"
// import { v4 } from "uuid"

export interface ResourceInitialConfig<T extends ResourceContent> {
  resourceName: string
  resourceType: ResourceType 
  content: T
}

export type ResourceListState = Resource<ResourceContent>[]
export const resourceInitialState: ResourceListState = [
//   {
//   content: {
//     authentication: "none",
//     baseUrl: "https://jsonplaceholder.typicode.com/posts",

//   },
//   resourceName: "Imapkt",
//   resourceType: "restapi",
//   resourceID: v4(),
//   createdBy: "Raghav",
//   updatedBy: "Raghav",
//   updatedAt: new Date().toLocaleDateString(),
//   createdAt: new Date().toLocaleDateString(),
// }
]
{
  // content: {
  //   authentication: "none",
  //   baseUrl: "https://jsonplaceholder.typicode.com/posts",

  // },
  // resourceName: "Imapkt",
  // resourceType: "impaktapps",
  // resourceID: v4(),
  // createdBy: "Raghav",
  // updatedBy: "Raghav",
  // updatedAt: new Date().toLocaleDateString(),
  // createdAt: new Date().toLocaleDateString(),
}
