import type { CardAction } from '@atlaskit/media-card/actions'; import type { CardOnClickCallback, CardEvent } from '@atlaskit/media-card/types'; import type { Identifier } from '@atlaskit/media-client/identifier'; import type { MediaFeatureFlags } from '@atlaskit/media-common/types'; import type { MediaClientConfig } from '@atlaskit/media-core/auth'; import type { ViewerOptionsProps } from '@atlaskit/media-viewer/viewer-options'; export interface FilmstripItem { readonly identifier: Identifier; readonly actions?: Array; readonly selectable?: boolean; readonly selected?: boolean; readonly onClick?: CardOnClickCallback; readonly onMouseEnter?: (result: CardEvent) => void; readonly shouldEnableDownloadButton?: boolean; } export type FilmstripProps = { items: FilmstripItem[]; shouldOpenMediaViewer?: boolean; mediaClientConfig?: MediaClientConfig; testId?: string; featureFlags?: MediaFeatureFlags; viewerOptions?: ViewerOptionsProps; includeHashForDuplicateFiles?: boolean; isLazy?: boolean; /** * Optional fallback fetcher to retrieve the media filename from another service. * Workaround for #hot-301450 where media service is missing filenames for DC -> Cloud migrated media. */ fallbackMediaNameFetcher?: (id: string) => Promise; };