export enum SelectSize {
medium = "medium",
large = "large",
}
// создай тип
type PositionProps = {
bottom: string;
left: string;
right: string;
top: string;
};
// или интерфейс
interface PositionProps {
bottom: string;
left: string;
right: string;
top: string;
};
export const selectSizeValues: { [key in SelectSize]: PositionProps } = {
[SelectSize.medium]: {
bottom: "8px",
left: "16px",
right: "56px",
top: "24px",
},
[SelectSize.large]: {
bottom: "8px",
left: "24px",
right: "64px",
top: "32px",
},
};