import { NoSymbolIcon, CheckIcon } from "@heroicons/react/20/solid"; type EnabledStatusProps = { enabled: boolean; enabledIcon?: React.ComponentType; disabledIcon?: React.ComponentType; }; export function EnabledStatus({ enabled, enabledIcon = CheckIcon, disabledIcon = NoSymbolIcon, }: EnabledStatusProps) { const EnabledIcon = enabledIcon; const DisabledIcon = disabledIcon; switch (enabled) { case true: return (
Enabled
); case false: return (
Disabled
); } }