SHARE
TWEET

Untitled

a guest Feb 24th, 2020 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top