import { Internship } from "@/data";
import React from "react";
import { Paper, PaperProps, Typography, TypographyProps } from "@material-ui/core";
import { useTranslation } from "react-i18next";
import { createStyles, makeStyles } from "@material-ui/core/styles";
import classNames from "classnames";
export type ProposalPreviewProps = {
proposal: Internship;
}
const Label = ({ children }: TypographyProps) => {
return { children }
}
const useSectionStyles = makeStyles(theme => createStyles({
root: {
padding: theme.spacing(2),
marginTop: theme.spacing(3)
}
}))
const Section = ({ children, ...props }: PaperProps) => {
const classes = useSectionStyles();
return
{ children }
}
export const ProposalPreview = ({ proposal }: ProposalPreviewProps) => {
const { t } = useTranslation();
return
{ proposal.intern.name } { proposal.intern.surname }
{ t('internship.intern.semester', { semester: proposal.intern.semester }) }
{ ", " }
{ t('internship.intern.album', { album: proposal.intern.albumNumber }) }
{ proposal.type }
{ t('internship.date-range', { start: proposal.startDate, end: proposal.endDate }) }
{ t('internship.duration', { duration: 0 })}
{ ", " }
{ t('internship.hours', { hours: proposal.hours })}
{ proposal.company.name }
NIP: { proposal.company.nip }
{ t('internship.address.city', proposal.office.address) }
{ t('internship.address.street', proposal.office.address) }
}