Lines Matching refs:url
35 url: string;
42 const ItemIcon = ({ url, className, isNested }: ItemIconProps) => {
45 } else if (isReferencePath(url)) {
47 } else if (isEASPath(url)) {
49 } else if (isHomePath(url)) {
51 } else if (isLearnPath(url)) {
57 const getFootnotePrefix = (url: string) => {
58 if (isReferencePath(url)) {
60 } else if (isEASPath(url)) {
62 } else if (isHomePath(url)) {
64 } else if (isLearnPath(url)) {
71 const ItemFootnotePrefix = ({ url, isNested = false }: { url: string; isNested?: boolean }) => {
75 {getFootnotePrefix(url)}
80 <CAPTION theme="quaternary">{getFootnotePrefix(url)}</CAPTION>
84 const transformUrl = (url: string) => {
85 if (url.includes(LATEST_VERSION)) {
86 url = url.replace(LATEST_VERSION, 'latest');
89 url = url.replace('https://docs.expo.dev/', 'http://localhost:3002/');
94 url = url.replace('https://docs.expo.dev/', window.location.origin + '/');
97 return url;
111 url={transformUrl(item.url)}
114 <ItemIcon url={item.url} isNested={isNested} className="shrink-0" />
121 <ItemFootnotePrefix url={item.url} isNested />
135 <ItemFootnotePrefix url={item.url} isNested />
148 <ItemFootnotePrefix url={item.url} isNested />
160 <ItemFootnotePrefix url={item.url} isNested />
169 <ItemFootnotePrefix url={item.url} />