Advertisement
Guest User

Untitled

a guest
Feb 24th, 2020
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. type Props = {
  2. storyId: string
  3. storyTitle: string
  4. dataTestPrefix?: string
  5. className?: string
  6. }
  7.  
  8. export default function Header(props: Props) {
  9. const { storyId, storyTitle, dataTestPrefix, className } = props
  10. return (
  11. <StyledTitle className={className}>
  12. <Link href={`/story?storyId=${storyId}`} as={`/story/${storyId}`}>
  13. <a data-testid={dataTestPrefix}>{storyTitle}</a>
  14. </Link>
  15. </StyledTitle>
  16. )
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement