import { toFixed } from 'common/math';
import { capitalize } from 'common/string';
import { useDispatch, useSelector } from 'tgui/backend';
import {
Button,
LabeledList,
NoticeBox,
Section,
Slider,
Stack,
} from 'tgui/components';
import { updateSettings } from './actions';
import { selectSettings } from './selectors';
const TabsViews = ['default', 'classic', 'scrollable'];
const LinkedToChat = () => (
Unlink Stat Panel from chat!
);
export function SettingsStatPanel(props) {
const { statLinked, statFontSize, statTabsStyle } =
useSelector(selectSettings);
const dispatch = useDispatch();
return (
{TabsViews.map((view) => (
))}
{statLinked ? (
) : (
toFixed(value)}
onChange={(e, value) =>
dispatch(updateSettings({ statFontSize: value }))
}
/>
)}
);
}