mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-19 23:16:21 +00:00
14 lines
413 B
TypeScript
14 lines
413 B
TypeScript
import { FC } from 'react';
|
|
import { GetConfigurationValue } from '../../api';
|
|
import { CatalogClassicView } from './CatalogClassicView';
|
|
import { CatalogModernView } from './CatalogModernView';
|
|
|
|
export const CatalogView: FC<{}> = () =>
|
|
{
|
|
const useNewStyle = GetConfigurationValue<boolean>('catalog.style.new', false);
|
|
|
|
if(useNewStyle) return <CatalogModernView />;
|
|
|
|
return <CatalogClassicView />;
|
|
};
|