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

const WritingLyrics = () => {
  return (
    <Page headerType="NONE">
      <Image source={ai.nathalie} style={styles.img} resizeMode="contain" />
      <MusicLandHeader onPressBack={goBack} progress={9} />
      <View
        style={{ flex: 1, position: "relative", justifyContent: "flex-end" }}
      >
        <View
          style={{
            paddingBottom: gutters * 2,
            paddingHorizontal: gutters,
            gap: 12,
          }}
        >
          <BorderGradientButton
            onPress={() => {
              navigate(Routes.CreateLyricsWithAi, {
                hasLyrics: true,
              });
            }}
          />
          <GradientButton
            title="Écrire des paroles avec une IA"
            onPress={() => navigate(Routes.CreateLyricsWithAi)}
          />
        </View>
      </View>
    </Page>
  );
};

export default WritingLyrics;

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