mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
22acd4894d
* change ref from styleMock.js to .ts * change ref from fileMock.js to .ts
14 lines
340 B
TypeScript
14 lines
340 B
TypeScript
/* eslint-disable */
|
|
import React from 'react';
|
|
|
|
const mockComponent =
|
|
(name: string) =>
|
|
(
|
|
props: React.InputHTMLAttributes<HTMLInputElement> &
|
|
React.ClassAttributes<HTMLInputElement>
|
|
) =>
|
|
React.createElement(name, props, props.children);
|
|
|
|
export const navigateTo = () => {};
|
|
export default mockComponent('MockedLink');
|