Skip to content

Commit

Permalink
Merge pull request #62 from sitecorelabs/feature/565348-FEaaS-wrapper…
Browse files Browse the repository at this point in the history
…-commponent

 #565348 FEaaSWrapper component has been implemented
  • Loading branch information
StanislavStativa authored Feb 1, 2023
2 parents 78db440 + 6e6824e commit 1785b22
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/sxastarter/src/components/FEaaSWrapper.tsx
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 1785b22

Please sign in to comment.