mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Co-authored-by: Janne Savolainen <janne.savolainen@live.fi> Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
18 lines
567 B
TypeScript
18 lines
567 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
import React from "react";
|
|
import type {
|
|
PreferenceItemComponent,
|
|
PreferencePage,
|
|
} from "./preference-items/preference-item-injection-token";
|
|
|
|
export const getPreferencePage = (label: string): PreferenceItemComponent<PreferencePage> => ({ children, item }) => (
|
|
<section id={item.id} data-preference-page-test={item.id}>
|
|
<h2 data-preference-page-title-test={true}>{label}</h2>
|
|
|
|
{children}
|
|
</section>
|
|
);
|