feat: loading & empty state for step 2
parent
1df3f4aad3
commit
90b407ecc8
@ -0,0 +1,24 @@
|
||||
import type { FC } from 'react'
|
||||
import { twc } from '@/utils/twc'
|
||||
|
||||
export const SkeletonContanier = twc.div`flex flex-col gap-1`
|
||||
|
||||
export const SkeletonRow = twc.div`flex items-center gap-2`
|
||||
|
||||
export const SkeletonRectangle = twc.div`h-2 rounded-sm opacity-20 bg-text-tertiary my-1`
|
||||
|
||||
export const SkeletonCircle: FC = () =>
|
||||
<div className='text-text-quaternary text-xs font-medium'>·</div>
|
||||
|
||||
/** Usage
|
||||
* <SkeletonContanier>
|
||||
* <SkeletonRow>
|
||||
* <SkeletonRectangle className="w-96" />
|
||||
* <SkeletonCircle />
|
||||
* <SkeletonRectangle className="w-96" />
|
||||
* </SkeletonRow>
|
||||
* <SkeletonRow>
|
||||
* <SkeletonRectangle className="w-96" />
|
||||
* </SkeletonRow>
|
||||
* <SkeletonRow>
|
||||
*/
|
||||
@ -1,7 +1,7 @@
|
||||
import groupBy from 'lodash-es/groupBy'
|
||||
import type { MutationOptions } from '@tanstack/react-query'
|
||||
import { useMutation } from '@tanstack/react-query'
|
||||
import { createDocument, createFirstDocument, fetchDefaultProcessRule, fetchFileIndexingEstimate } from './datasets'
|
||||
import { createDocument, createFirstDocument, fetchDefaultProcessRule, fetchFileIndexingEstimate } from '../datasets'
|
||||
import { type IndexingType } from '@/app/components/datasets/create/step-two'
|
||||
import type { CrawlOptions, CrawlResultItem, CreateDocumentReq, CustomFile, DataSourceType, DocForm, FileIndexingEstimateResponse, IndexingEstimateParams, NotionInfo, ProcessRule, ProcessRuleResponse, createDocumentResponse } from '@/models/datasets'
|
||||
import type { DataSourceProvider, NotionPage } from '@/models/common'
|
||||
@ -0,0 +1,6 @@
|
||||
import { createTwc } from 'react-twc'
|
||||
import classNames from './classnames'
|
||||
|
||||
export const twc = createTwc({
|
||||
compose: classNames,
|
||||
})
|
||||
Loading…
Reference in New Issue