mirror of
https://github.com/Unleash/unleash.git
synced 2025-09-24 17:51:14 +02:00
* feat: add initial controller * feat: add fe * feat: return status codes * remove backend experiment * refactor standalone route for project banner * update suggest changeset type * refactor changeset mock * suggest changes banner feature flag * fix: update routes snapshot Co-authored-by: Fredrik Oseberg <fredrik.no@gmail.com>
20 lines
529 B
TypeScript
20 lines
529 B
TypeScript
import { FC, ReactNode } from 'react';
|
|
import { ConditionallyRender } from 'component/common/ConditionallyRender/ConditionallyRender';
|
|
import { MainLayout } from '../MainLayout/MainLayout';
|
|
|
|
interface ILayoutPickerProps {
|
|
children: ReactNode;
|
|
isStandalone?: boolean;
|
|
}
|
|
|
|
export const LayoutPicker: FC<ILayoutPickerProps> = ({
|
|
isStandalone,
|
|
children,
|
|
}) => (
|
|
<ConditionallyRender
|
|
condition={isStandalone === true}
|
|
show={children}
|
|
elseShow={<MainLayout>{children}</MainLayout>}
|
|
/>
|
|
);
|