Skip to content
Snippets Groups Projects
add-game-dropdown.tsx 1.03 KiB
Newer Older
import { User } from "@prisma/client"
import AddGameToFinishedList from "./add-game-to-finished-list"
import AddGameToPlanList from "./add-game-to-plan-list"
import AddGameToPlayingList from "./add-game-to-playing-list"
Yusuf Akgül's avatar
Yusuf Akgül committed
import { Select, SelectContent, SelectGroup, SelectTrigger, SelectValue } from "./ui/select"

export default function AddGameDropdown(props: { gameid: string, fullUser: User }) {
Yusuf Akgül's avatar
Yusuf Akgül committed
                <SelectTrigger>
                    <SelectValue placeholder="Status" />
                </SelectTrigger>
                <SelectContent>
                    <SelectGroup className="space-y-3 w-full">
                        <AddGameToFinishedList user={props.fullUser!} gameId={props.gameid} />
                        <AddGameToPlayingList user={props.fullUser!} gameId={props.gameid} />
                        <AddGameToPlanList user={props.fullUser!} gameId={props.gameid} />
                    </SelectGroup>
                </SelectContent>
            </Select>

        </>
    )