import type { FC } from 'react' ; import React from 'react' ; import { Link , withPrefix } from '../utils' ; import type * as types from '.contentlayer/types' ; export const ActionLink = ( { action } ) => ( < Link href = { withPrefix ( action . url ) } target = { action . new_window ? '_blank' : undefined } rel = { action . new_window ? 'noopener' : action . no_follow ? 'nofollow' : undefined } > { action . label } < /Link>);