1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-09-24 17:51:14 +02:00
unleash.unleash/frontend/src/component/layout/LayoutPicker/LayoutPicker.tsx
Tymoteusz Czech b8c3833ae4
Suggest changes - initial frontend (#2213)
* 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>
2022-10-20 14:00:48 +02:00

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>}
/>
);