app/imports/ui/components/shared/RelatedInternships.tsx
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;