import React from 'react'; import { __ } from '@wordpress/i18n'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; import { Caption } from '@/components/ui/typography'; interface Props { compact?: boolean, disabled?: boolean, status: string, onChange: ( value: boolean ) => void, } /** * Audience status toggle. * * @param {Object} props Component props. * @returns {*} Status toggle component. */ const StatusToggle = ( props: Props ) => { const { compact = false, disabled, status, onChange, } = props; const isActive = status === 'publish'; const helpText = isActive ? __( 'Audience is active', 'altis' ) : __( 'Audience is inactive', 'altis' ); return (