feat: ✨ add feature toggles to homepage
- Add take-away and delivery options - Update responsive stylingmain
parent
45d53a9617
commit
a5b8f491eb
@ -0,0 +1,20 @@
|
||||
import { HStack } from "@styled-system/jsx";
|
||||
import React from "react";
|
||||
import { Text } from "@/components/ui/text";
|
||||
|
||||
type FeatureToggleProps = {
|
||||
feature: boolean;
|
||||
icon: React.ComponentType;
|
||||
label: string;
|
||||
};
|
||||
|
||||
export default function FeatureToggle({ feature, icon: Icon, label }: FeatureToggleProps) {
|
||||
return (
|
||||
feature && (
|
||||
<HStack alignItems="center">
|
||||
<Icon />
|
||||
<Text>{label}</Text>
|
||||
</HStack>
|
||||
)
|
||||
);
|
||||
}
|
Loading…
Reference in New Issue