'use client'

import { useSession } from 'next-auth/react'

export default function MLPage() {
  const { status } = useSession()

  if (status === 'loading') {
    return <div>Loading...</div>
  }

  if (status === 'unauthenticated') {
    return <div>Please sign in</div>
  }

  return (
    <div className="container mx-auto p-6">
      <h1 className="text-3xl font-bold mb-6">AI Foundry</h1>
      <p className="text-muted-foreground mb-4">
        ML platform for model training, inference, and pipeline management
      </p>
      {/* ML platform UI will be implemented here */}
      <div className="border rounded-lg p-4">
        <p className="text-sm text-muted-foreground">ML platform interface coming soon</p>
      </div>
    </div>
  )
}

