You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/web/e2e/cypress/components/utils/TestWrapper.tsx

22 lines
427 B
TypeScript

import React from 'react';
import '../../../../src/styles';
import clsx from 'clsx';
export const TestWrapper: React.FC<{
theme?: 'dark' | 'light';
}> = (props) => {
const { theme = 'dark' } = props;
return (
<div
className={clsx(theme, {
'bg-black': theme === 'dark',
})}
data-testid="test-wrapper"
>
{props.children}
</div>
);
};
TestWrapper.displayName = 'TestWrapper';