chore: heygermany customer project
Some checks failed
Main / Setup and Test (push) Has been cancelled
Main / Build Website (push) Has been cancelled

This commit is contained in:
e2e
2026-07-11 11:03:59 +02:00
commit 36f1b746bd
370 changed files with 35585 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
import { useI18n } from '@/context/i18n-provider';
import { Select, SelectProps } from '@pikku/mantine/core';
interface EnumSelectProps extends Omit<SelectProps, 'data'> {
enumObject: Record<string, string>;
enumName: string;
label?: any;
placeholder?: any;
}
export const EnumSelect: React.FC<EnumSelectProps> = ({
enumObject,
enumName,
...selectProps
}) => {
const t = useI18n()
const options = t.getEnumOptions(enumObject, enumName);
return (
<Select
{...(selectProps as any)}
data={options}
/>
);
};