Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
Plaintext
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
import { FieldLabel } from '@payloadcms/ui';
|
|
import React from 'react';
|
|
import { ResetPreferences } from '../ResetPreferences/index.js';
|
|
import { ToggleTheme } from '../ToggleTheme/index.js';
|
|
import { LanguageSelector } from './LanguageSelector.js';
|
|
const baseClass = 'payload-settings';
|
|
export const Settings = props => {
|
|
const {
|
|
className,
|
|
i18n,
|
|
languageOptions,
|
|
theme,
|
|
user
|
|
} = props;
|
|
return /*#__PURE__*/_jsxs("div", {
|
|
className: [baseClass, className].filter(Boolean).join(' '),
|
|
children: [/*#__PURE__*/_jsx("h3", {
|
|
children: i18n.t('general:payloadSettings')
|
|
}), /*#__PURE__*/_jsxs("div", {
|
|
className: `${baseClass}__language`,
|
|
children: [/*#__PURE__*/_jsx(FieldLabel, {
|
|
htmlFor: "language-select",
|
|
label: i18n.t('general:language')
|
|
}), /*#__PURE__*/_jsx(LanguageSelector, {
|
|
languageOptions: languageOptions
|
|
})]
|
|
}), theme === 'all' && /*#__PURE__*/_jsx(ToggleTheme, {}), /*#__PURE__*/_jsx(ResetPreferences, {
|
|
user: user
|
|
})]
|
|
});
|
|
};
|
|
//# sourceMappingURL=index.js.map |