'use client';

import ProjectThumb from './ProjectThumb';
import { IProjectThumbResponseData } from '@/app/api/projects/data';
import { TLocales } from '@/models/layout';

interface Props {
  projects: IProjectThumbResponseData[];
  locale: TLocales;
}

export default function ProjectsGridView({ projects, locale }: Props) {
  return (
    <>
      {projects?.map((project) => (
        <ProjectThumb key={project.id} project={project} locale={locale} />
      ))}
    </>
  );
}
