import React, { FC } from "react" import * as SC from "./styles" interface IResourcesLinkProps { to: string } export const ResourcesLink: FC = ({ children, to, }) => { if (!to.match(/^(https?:\/\/)/)) { return ( {children} ) } return ( {children} ) }