export const SplashFragmentXML = (configuration) => {
  return `<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/white">



    <ImageView
        android:id="@+id/imageViewSplash"
        android:layout_width="212dp"
        android:layout_height="213dp"
        android:layout_marginStart="169dp"
        android:layout_marginTop="120dp"
        android:layout_marginEnd="170dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.435"
        app:layout_constraintStart_toStartOf="parent"
        app:layout_constraintTop_toTopOf="parent"
        app:srcCompat="@drawable/ic_loc_active" />

    <com.google.android.material.button.MaterialButton
        android:id="@+id/buttonSplashLogin"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="16dp"
        android:layout_marginTop="15dp"
        android:padding="16dp"
        android:text="Login"
        app:cornerRadius="10dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/imageViewSplash"
        app:strokeWidth="2dp" />


    <com.google.android.material.button.MaterialButton
        android:id="@+id/btnSplashRegister"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginHorizontal="16dp"
        android:layout_marginTop="15dp"
        android:padding="16dp"
        android:text="Register"
        android:textAllCaps="false"
        style="@style/Widget.MaterialComponents.Button.OutlinedButton"
        app:cornerRadius="10dp"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintTop_toBottomOf="@id/buttonSplashLogin"
        app:strokeWidth="2dp" />

      ${
        configuration.isAppleLogin || configuration.isGoogleLogin
          ? `
    <androidx.constraintlayout.widget.ConstraintLayout
        android:layout_width="match_parent"
        android:layout_height="0dp"
        android:layout_marginBottom="84dp"
        android:orientation="horizontal"
        android:padding="16dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintEnd_toEndOf="parent"
        app:layout_constraintHorizontal_bias="0.5"
        app:layout_constraintStart_toStartOf="parent">


        <LinearLayout
            android:id="@+id/linearLayout"
            android:layout_width="0dp"
            android:layout_height="wrap_content"
            android:orientation="vertical"
            app:layout_constraintBottom_toBottomOf="parent"
            app:layout_constraintEnd_toEndOf="parent"
            app:layout_constraintStart_toStartOf="parent">

           ${
             configuration.isAppleLogin
               ? `<com.google.android.material.button.MaterialButton
                android:id="@+id/btnApple"
                style="@style/Widget.Material3.Button.OutlinedButton.Icon"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:text="@string/apple"
                android:textColor="@color/black"
                app:cornerRadius="4dp"
                app:icon="@drawable/apple"
                app:iconGravity="textStart"
                app:iconPadding="@dimen/_10sdp"
                app:iconTint="@color/black"
                app:strokeColor="@color/bgGray" />`
               : ""
           }

            ${
              configuration.isGoogleLogin
                ? `<com.google.android.material.button.MaterialButton
                android:id="@+id/btnGoogle"
                style="@style/Widget.Material3.Button.OutlinedButton.Icon"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginTop="5dp"
                android:text="@string/google"
                android:textColor="@color/black"
                app:cornerRadius="4dp"
                app:icon="@drawable/google"
                app:iconGravity="textStart"
                app:iconPadding="@dimen/_10sdp"
                app:iconTint="@null"
                app:strokeColor="@color/bgGray" />`
                : ""
            }

        </LinearLayout>

    </androidx.constraintlayout.widget.ConstraintLayout>
`
          : ""
      }
       

</androidx.constraintlayout.widget.ConstraintLayout>
    `;
};
