Skip to content

Commit

Permalink
#565348 FEaaSWrapper component has been implemented (#1318)
Browse files Browse the repository at this point in the history
FEaaSWrapper component has been implemented
  • Loading branch information
StanislavStativa authored Feb 1, 2023
1 parent e0ce646 commit b059081
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { FEaaSComponent, FEaaSComponentProps } from '@sitecore-jss/sitecore-jss-nextjs';
import React from 'react';

export const Default = (props: FEaaSComponentProps): JSX.Element => {
const styles = `component feaas ${props.params?.styles}`.trimEnd();
const id = props.params?.RenderingIdentifier;

return (
<div className={styles} id={id ? id : undefined}>
<div className="component-content">
<FEaaSComponent {...props} />
</div>
</div>
);
};

0 comments on commit b059081

Please sign in to comment.