import { View, Image, StyleSheet } from "react-native";
import React from "react";
import Page from "../../layouts/Page";
import { ai } from "../../assets";
import MusicLandHeader from "../../components/MusicLandHeader";
import { goBack, navigate } from "../../navigation/NavigationService";
import { gutters } from "../../styles";
import BorderGradientButton from "../../components/BorderGradientButton";
import GradientButton from "../../components/GradientButton";
import { Routes } from "../../navigation";

const FinishedWriting = () => {
  return (
    <Page headerType="NONE">
      <Image source={ai.nathalie} style={styles.img} resizeMode="contain" />
      <MusicLandHeader onPressBack={goBack} progress={100} />
      <View
        style={{ flex: 1, position: "relative", justifyContent: "flex-end" }}
      >
        <View
          style={{
            paddingBottom: gutters * 2,
            paddingHorizontal: gutters,
            gap: 12,
          }}
        >
          <BorderGradientButton title="Enregistrer et continuer plus tard" />
          <GradientButton
            title="Passer à la composition musicale"
            onPress={() => navigate(Routes.Onboarding)}
          />
        </View>
      </View>
    </Page>
  );
};

export default FinishedWriting;

const styles = StyleSheet.create({
  img: {
    width: "100%",
    height: "70%",
    position: "absolute",
    bottom: -40,
    right: -30,
  },
});
