import { Skeleton } from "@/components/search/skeleton"; import { Wrapper } from "@/components/search/wrapper"; import { Source } from "@/types/source"; import { BookText } from "lucide-react"; import { FC } from "react"; const SourceItem: FC<{ source: Source; index: number }> = ({ source, index, }) => { const { id, name, url } = source; const domain = new URL(url).hostname; return (
{name}
{index + 1} - {domain}
{domain}
); }; export const Sources: FC<{ sources: Source[] }> = ({ sources }) => { return ( 参考 } content={
{sources.length > 0 ? ( sources.map((item, index) => ( )) ) : ( <> )}
} >
); };