();
-
- return (
-
-
- {children}
-
-
- );
-};
-
-export type InlineCitationCarouselContentProps = ComponentProps<"div">;
-
-export const InlineCitationCarouselContent = (
- props: InlineCitationCarouselContentProps
-) => ;
-
-export type InlineCitationCarouselItemProps = ComponentProps<"div">;
-
-export const InlineCitationCarouselItem = ({
- className,
- ...props
-}: InlineCitationCarouselItemProps) => (
-
-);
-
-export type InlineCitationCarouselHeaderProps = ComponentProps<"div">;
-
-export const InlineCitationCarouselHeader = ({
- className,
- ...props
-}: InlineCitationCarouselHeaderProps) => (
-
-);
-
-export type InlineCitationCarouselIndexProps = ComponentProps<"div">;
-
-export const InlineCitationCarouselIndex = ({
- children,
- className,
- ...props
-}: InlineCitationCarouselIndexProps) => {
- const api = useCarouselApi();
- const [current, setCurrent] = useState(0);
- const [count, setCount] = useState(0);
-
- useEffect(() => {
- if (!api) {
- return;
- }
-
- setCount(api.scrollSnapList().length);
- setCurrent(api.selectedScrollSnap() + 1);
-
- api.on("select", () => {
- setCurrent(api.selectedScrollSnap() + 1);
- });
- }, [api]);
-
- return (
-
- {children ?? `${current}/${count}`}
-
- );
-};
-
-export type InlineCitationCarouselPrevProps = ComponentProps<"button">;
-
-export const InlineCitationCarouselPrev = ({
- className,
- ...props
-}: InlineCitationCarouselPrevProps) => {
- const api = useCarouselApi();
-
- const handleClick = useCallback(() => {
- if (api) {
- api.scrollPrev();
- }
- }, [api]);
-
- return (
-
-
-
- );
-};
-
-export type InlineCitationCarouselNextProps = ComponentProps<"button">;
-
-export const InlineCitationCarouselNext = ({
- className,
- ...props
-}: InlineCitationCarouselNextProps) => {
- const api = useCarouselApi();
-
- const handleClick = useCallback(() => {
- if (api) {
- api.scrollNext();
- }
- }, [api]);
-
- return (
-
-
-
- );
-};
-
export type InlineCitationSourceProps = ComponentProps<"div"> & {
title?: string;
url?: string;
@@ -281,24 +67,6 @@ export const InlineCitationSource = ({
);
-export type InlineCitationQuoteProps = ComponentProps<"blockquote">;
-
-export const InlineCitationQuote = ({
- children,
- className,
- ...props
-}: InlineCitationQuoteProps) => (
-
- {children}
-
-);
-
/**
* Shared CitationLink component that renders a citation as a hover card badge
* Used across message-list-item, artifact-file-detail, and message-group