I have a preference:
const settings = {
theme: "light",
};
and feature:
const Feature = ({ setting }: Props) => (
<FeatureBlock>
<FeatureValue scale="large" size={20}>
{setting.theme}
</Styled.FeatureValue>
</FeatureBlock>
);
Is there a way to use destructuring for {setting.theme}
?