import React from 'react' ; import styled from 'styled-components' ; import { TestComponentProps , TestRunner } from '../TestRunner' ; import { buttonStyles } from '../utils/buttonStyles' ; const Test = ( { testIndex } ) => { const Button = styled ( 'button' ) ( { '--test-index' : testIndex , ... ( buttonStyles as any ) , } ) ; return < Button > testing < /Button>; } ; const StitchesTest = ( ) => { return < TestRunner numberOfRuns = { 3 } iterationN = { 1000 } TestComponent = { Test } / > ; } ; export default StitchesTest ;