import React from "react";

import { Resource } from "../components/organisms";

type ResourcePageProps = {
  title: string;
  content: string;
  viewsCount: number;
  commentsCount: number;
  userName: string;
  profileImage: string;
  subheader?: string;
};

const ResourcePage = ({
  title,
  content,
  userName,
  profileImage,
  viewsCount,
  commentsCount,
  subheader,
}: ResourcePageProps) => {
  return (
    <div className="mt-11 mx-40">
      <Resource
        title={title}
        content={content}
        userName={userName}
        profileImage={profileImage}
        viewsCount={viewsCount}
        commentsCount={commentsCount}
        subheader={subheader}
      />
    </div>
  );
};

export { ResourcePage, ResourcePageProps };
