import React from "react"; import { Container } from "../../util/container"; import { ObjectField } from "@tinacms/schema-tools/dist/types"; import facebookImage from "../../../assets/img/facebook.svg"; import instagramImage from "../../../assets/img/instagram.svg"; import { tinaField } from "tinacms/dist/react"; import { TinaMarkdown } from "tinacms/dist/rich-text"; export const Footer = ({ data, rawData }) => { return ( ); }; export const footerSchema: ObjectField = { type: "object", label: "Footer", name: "footer", fields: [ { type: "object", label: "Contact", name: "contact", defaultItem: { label: "Contact :", mail: "mail@example.com", phone: "00 00 00 00 00" }, fields: [ { type: "string", label: "Label Contact", name: "label" }, { type: "string", label: "Mail", name: "mail" }, { type: "string", label: "Téléphone", name: "phone" } ] }, { type: "object", label: "Legal", name: "legals", defaultItem: { siret: "000 000 000 00000", link: { label: "Mentions légales", url: "/" } }, fields: [ { type: "string", label: "SIRET", name: "siret" }, { type: "object", label: "Lien Mentions Légales", name: "link", fields: [ { type: "string", label: "Texte", name: "label" }, { type: "string", label: "Url", name: "url" } ] } ] }, { type: "object", label: "Copyright", name: "copyright", defaultItem: { year: "0000", subtext: "El text" }, fields: [ { type: "string", label: "Année", name: "year" }, { type: "rich-text", label: "Sous-texte", name: "subtext" } ] }, { type: "object", label: "Social Links", name: "social", fields: [ { type: "string", label: "Facebook", name: "facebook" }, { type: "string", label: "Instagram", name: "instagram" } ] }] };