defmodule ToweropsWeb.Components.ConsentPrompt do @moduledoc """ LiveView component for prompting users to re-consent when policies are updated. This component displays a modal that users cannot dismiss until they accept the updated privacy policy and/or terms of service. """ use Phoenix.Component use Gettext, backend: ToweropsWeb.Gettext import ToweropsWeb.CoreComponents attr :user_id, :string, required: true attr :policies, :list, required: true def consent_modal(assigns) do ~H""" <%= if @policies != [] do %>
{gettext( "We've updated our policies. Please review and accept the changes to continue using Towerops." )}
{gettext( "By accepting, you acknowledge that you have read and agree to the updated policies. You can review your consent history at any time from your account settings." )}