ServerKit is a lightweight, modern server control panel for managing web applications, databases, and services on your VPS or dedicated server. Built with Python/Flask backend and React frontend.
Python astracloudflarecontrol-panelcyberpaneldnsfablehosting-control-panelhosting-panelkimi-k3server-managementserverkitubuntu-web-panelwebserver
import { useState } from 'react';
import { useTranslation } from 'react-i18next';
import EnvironmentVariables from '../EnvironmentVariables';
import SegControl from '../ds/SegControl';
import ListToolbar from '../ds/ListToolbar';
import EffectiveEnvironment from './EffectiveEnvironment';
export default function EnvironmentPanel({ appId }) {
const { t } = useTranslation();
const [view, setView] = useState('local');
return <>
<ListToolbar filters={<SegControl value={view} onChange={setView} options={[
{ value: 'local', label: t('effectiveEnv.local', 'Local variables') },
{ value: 'effective', label: t('effectiveEnv.title', 'Effective environment') },
]} />} />
{view === 'local' ? <EnvironmentVariables key={appId} appId={appId} />
: <EffectiveEnvironment key={appId} appId={appId} />}
</>;
}