generating an automated link.
Mon Jan 15 2024 03:29:16 GMT+0000 (Coordinated Universal Time)
Saved by
@_rosetteeee_
export default function JobDescriptionCard({ details, j_id }) {
const [expanded, setExpanded] = React.useState(false);
const handleExpandClick = () => {
setExpanded(!expanded);
};
return (
<Card sx={{ width: "auto" }}>
<CardHeader title={details?.job_title} subheader="July, 2023" />
<CardContent>
<Typography variant="body2" color="text.secondary">
{details?.jd}
</Typography>
</CardContent>
<CardActions disableSpacing>
<IconButton aria-label="share">
<ShareIcon />
<p
onClick={() => {
navigator.clipboard.writeText(`http://localhost:3000/job/${j_id}`);
alert("Link Copied ");
}}
style={{ marginLeft: '10px', fontSize: '15px' }}
>
http://localhost:3000/job/{j_id}
</p>
</IconButton>
</CardActions>
</Card>
);
}
content_copyCOPY
Comments