import { Button, Input, Label } from 'index'
import {
  Sheet,
  SheetContent,
  SheetDescription,
  SheetFooter,
  SheetHeader,
  SheetTitle,
  SheetTrigger,
} from './index'

export default () => (
  <Sheet>
    <SheetTrigger asChild>
      <Button variant="outline">Open</Button>
    </SheetTrigger>
    <SheetContent position="right" size="sm" tw="h-[100vh]">
      <SheetHeader>
        <SheetTitle>Edit profile</SheetTitle>
        <SheetDescription>
          Make changes to your profile here. Click save when you're done.
        </SheetDescription>
      </SheetHeader>
      <div tw="grid gap-4 py-4">
        <div tw="grid grid-cols-4 items-center gap-4">
          <Label htmlFor="name" tw="text-right">
            Name
          </Label>
          <Input id="name" defaultValue="Pedro Duarte" tw="col-span-3" />
        </div>
        <div tw="grid grid-cols-4 items-center gap-4">
          <Label htmlFor="username" tw="text-right">
            Username
          </Label>
          <Input id="username" defaultValue="@peduarte" tw="col-span-3" />
        </div>
      </div>
      <SheetFooter>
        <Button type="submit">Save changes</Button>
      </SheetFooter>
    </SheetContent>
  </Sheet>
)
