File size: 849 Bytes
a37f566
 
42a066b
 
a37f566
 
 
42a066b
 
 
 
 
 
 
 
 
 
 
 
 
a37f566
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import FileJson from 'lucide-react/dist/esm/icons/file-json'
import Plus from 'lucide-react/dist/esm/icons/plus'
import { Card, CardContent } from '@/components/ui/card'
import { Button } from '@/components/ui/button'

export default function EmptyQuestionsState({ onOpenJson, onOpenManual }) {
  return (
    <Card>
      <CardContent className="p-10 text-center">
        <p className="theme-muted mb-3">No questions yet.</p>
        <div className="flex gap-3 justify-center">
          <Button variant="ghost" onClick={onOpenJson} className="flex items-center gap-2 text-sm">
            <FileJson size={14}/> Upload JSON
          </Button>
          <Button onClick={onOpenManual} className="flex items-center gap-2 text-sm">
            <Plus size={14}/> Add Manually
          </Button>
        </div>
      </CardContent>
    </Card>
  )
}