radgrad/radgrad2

View on GitHub
app/imports/ui/components/shared/RelatedInternships.tsx

Summary

Maintainability
A
0 mins
Test Coverage
import React from 'react';
import InternshipList from './InternshipList';
import RadGradHeader from './RadGradHeader';
import RadGradSegment from './RadGradSegment';
import { EXPLORER_TYPE_ICON } from '../../utilities/ExplorerUtils';

interface RelatedInternshipsProps {
  internships: any[];
  userID: string;
}

const RelatedInternships: React.FC<RelatedInternshipsProps> = ({ internships, userID }) => {
  const header = <RadGradHeader title='related internships' icon={EXPLORER_TYPE_ICON.INTERNSHIP} />;
  return (
    <RadGradSegment header={header}>
      <InternshipList size='medium'  internships={internships}/>
    </RadGradSegment>
  );
};

export default RelatedInternships;