39 lines
1.4 KiB
TypeScript
39 lines
1.4 KiB
TypeScript
import Svg, { Circle, Path } from 'react-native-svg';
|
|
|
|
export const HEART = 'M12 20.5s-8-4.9-8-11A4.6 4.6 0 0 1 12 6.8a4.6 4.6 0 0 1 8 2.7c0 6.1-8 11-8 11z';
|
|
|
|
type P = { size: number; color: string };
|
|
|
|
export function HeartIcon({ size, color, filled }: P & { filled: boolean }) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} fill={filled ? color : 'none'} stroke={color} strokeWidth={1.9}>
|
|
<Path d={HEART} />
|
|
</Svg>
|
|
);
|
|
}
|
|
|
|
export function CommentIcon({ size, color }: P) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} fill="none" stroke={color} strokeWidth={1.9} strokeLinejoin="round">
|
|
<Path d="M20.5 12a8.5 8.5 0 0 1-12.6 7.4L3.5 20.5l1.2-4.2A8.5 8.5 0 1 1 20.5 12z" />
|
|
</Svg>
|
|
);
|
|
}
|
|
|
|
export function SendIcon({ size, color }: P) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} fill="none" stroke={color} strokeWidth={1.9} strokeLinecap="round" strokeLinejoin="round">
|
|
<Path d="M21 3 10 14M21 3l-6.5 18-4-7.5L3 9.5z" />
|
|
</Svg>
|
|
);
|
|
}
|
|
|
|
export function CameraIcon({ size, color }: P) {
|
|
return (
|
|
<Svg viewBox="0 0 24 24" width={size} height={size} fill="none" stroke={color} strokeWidth={2} strokeLinecap="round" strokeLinejoin="round">
|
|
<Path d="M4 8.5A1.5 1.5 0 0 1 5.5 7h2.2l1.5-2h5.6l1.5 2h2.2A1.5 1.5 0 0 1 20 8.5v9a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 17.5z" />
|
|
<Circle cx={12} cy={13} r={3.5} />
|
|
</Svg>
|
|
);
|
|
}
|