mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-05 15:33:59 +00:00
8ad260d28a
fix: parsing of custom fields for blocks refactor: extract cuesheet settings refactor: cuesheet actions refactor: improve cuesheet performance on resizing
14 lines
389 B
TypeScript
14 lines
389 B
TypeScript
import { PropsWithChildren } from 'react';
|
|
|
|
import ProtectRoute from '../common/components/protect-route/ProtectRoute';
|
|
|
|
import style from './EditorFeatureWrapper.module.scss';
|
|
|
|
export default function EditorFeatureWrapper({ children }: PropsWithChildren) {
|
|
return (
|
|
<ProtectRoute permission='editor'>
|
|
<div className={style.wrapper}>{children}</div>
|
|
</ProtectRoute>
|
|
);
|
|
}
|