2021-06-29 14:33:36 +05:30
|
|
|
import React from 'react';
|
|
|
|
|
import Theme from 'sources/Theme';
|
|
|
|
|
|
|
|
|
|
export function withTheme(WrappedComp) {
|
2022-01-18 14:49:54 +05:30
|
|
|
// eslint-disable-next-line react/display-name
|
|
|
|
|
return (props)=>{
|
2021-06-29 14:33:36 +05:30
|
|
|
return <Theme><WrappedComp {...props}/></Theme>;
|
|
|
|
|
};
|
|
|
|
|
}
|