import styled from 'styled-components'
import gql from 'graphql-tag'
import { Mutation, Query } from 'react-apollo'
import File from './File'
import ProjectVersion from './ProjectVersion'
const CREATE_PROJECT = gql`
mutation CREATE_PROJECT($name: String!, $abbreviation: String!, $description: String) {
createProject(name: $name, abbreviation: $abbreviation, description: $description) {
id
}
}
`
const QUERY_PROJECTS = gql`
query QUERY_PROJECTS {
projects {
id
name
abbreviation
description
files {
id
path
name
description
filename
mimetype
size
}
versions {
id
name
changes
date
}
}
}
`
const ProjectSelector = props => (
Error loading project: ${error.message} Loading data... No project found.