ぼざクリタグ広場 https://hub.nizika.monster
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

51 lines
1.1 KiB

  1. import { useState } from 'react'
  2. import { Helmet } from 'react-helmet-async'
  3. import Label from '@/components/common/Label'
  4. import PageTitle from '@/components/common/PageTitle'
  5. import TagInput from '@/components/common/TagInput'
  6. import MainArea from '@/components/layout/MainArea'
  7. import { SITE_TITLE } from '@/config'
  8. import type { FC, FormEvent } from 'react'
  9. const MaterialSearchPage: FC = () => {
  10. const [tagName, setTagName] = useState ('')
  11. const [parentTagName, setParentTagName] = useState ('')
  12. const handleSearch = (e: FormEvent) => {
  13. e.preventDefault ()
  14. }
  15. return (
  16. <MainArea>
  17. <Helmet>
  18. <title>素材集 | {SITE_TITLE}</title>
  19. </Helmet>
  20. <div className="max-w-xl">
  21. <PageTitle>素材集</PageTitle>
  22. <form onSubmit={handleSearch} className="space-y-2">
  23. {/* タグ */}
  24. <div>
  25. <Label>タグ</Label>
  26. <TagInput
  27. value={tagName}
  28. setValue={setTagName}/>
  29. </div>
  30. {/* 親タグ */}
  31. <div>
  32. <Label>親タグ</Label>
  33. <TagInput
  34. value={parentTagName}
  35. setValue={setParentTagName}/>
  36. </div>
  37. </form>
  38. </div>
  39. </MainArea>)
  40. }
  41. export default MaterialSearchPage