Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- type Props = {
- storyId: string
- storyTitle: string
- dataTestPrefix?: string
- className?: string
- }
- export default function Header(props: Props) {
- const { storyId, storyTitle, dataTestPrefix, className } = props
- return (
- <StyledTitle className={className}>
- <Link href={`/story?storyId=${storyId}`} as={`/story/${storyId}`}>
- <a data-testid={dataTestPrefix}>{storyTitle}</a>
- </Link>
- </StyledTitle>
- )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement