mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-08 14:35:49 +01:00
17 lines
386 B
TypeScript
17 lines
386 B
TypeScript
|
|
import { Select } from '@mantine/core';
|
||
|
|
import { useState } from 'react';
|
||
|
|
|
||
|
|
export default function SelectConfig(props: any) {
|
||
|
|
const [value, setValue] = useState<string | null>('');
|
||
|
|
return (
|
||
|
|
<Select
|
||
|
|
value={value}
|
||
|
|
onChange={setValue}
|
||
|
|
data={[
|
||
|
|
{ value: 'default', label: 'Default' },
|
||
|
|
{ value: 'yourmom', label: 'Your mom' },
|
||
|
|
]}
|
||
|
|
/>
|
||
|
|
);
|
||
|
|
}
|