= ({
overrideKey,
overrides,
overridesObj,
componentConfig,
set,
}) => {
const [css, theme] = useStyletron();
const isLightTheme = theme.name.startsWith("light-theme");
const code = overridesObj[overrideKey] ? overridesObj[overrideKey].style : "";
return (
{
set({
...overrides.value,
[overrideKey]: { style: newCode, active: true },
});
}}
code={code}
small
/>
({
marginTop: $theme.sizing.scale300,
[`@media screen and (max-width: ${$theme.breakpoints.medium}px)`]:
{
flexWrap: "wrap",
},
}),
},
}}
>
);
};
export default Override;