import { getMe } from '@/features/auth/api.server';
import { SettingsDenied } from '@/features/auth/SettingsDenied';
import { InteractiveVoiceView } from '@/features/settings/ui/calling/InteractiveVoiceView';

export const metadata = { title: 'Interactive Voice Response' };

/** Settings › Tools › Calling › Interactive Voice (design: interactive-voice-response.php) — FE only. */
export default async function InteractiveVoicePage() {
  const me = await getMe();
  if (!me.permissionSet.rules.app.manage_settings) {
    return <SettingsDenied title="Interactive Voice" area="settings" />;
  }
  return <InteractiveVoiceView />;
}
